
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
53 lines
1.0 KiB
JavaScript
53 lines
1.0 KiB
JavaScript
const path = require('path');
|
|
|
|
function resolve(dir = '') {
|
|
return path.join(__dirname, './src', dir);
|
|
}
|
|
|
|
module.exports = {
|
|
publicPath: './',
|
|
outputDir: 'dist',
|
|
assetsDir: 'static',
|
|
productionSourceMap: false,
|
|
devServer: {
|
|
//九键输入法的 「mall」= 「6255」
|
|
port: 6255,
|
|
proxy: {
|
|
'/wx': {
|
|
target: 'http://localhost:8080'
|
|
},
|
|
},
|
|
},
|
|
chainWebpack: config => {
|
|
config.plugins.delete('prefetch');
|
|
config.plugins.delete('preload');
|
|
},
|
|
configureWebpack: {
|
|
resolve: {
|
|
alias: {
|
|
core: resolve('core')
|
|
}
|
|
},
|
|
optimization: {
|
|
runtimeChunk: {
|
|
name: entrypoint => `runtime~${entrypoint.name}`
|
|
},
|
|
splitChunks: {
|
|
minChunks: 2,
|
|
minSize: 20000,
|
|
maxAsyncRequests: 20,
|
|
maxInitialRequests: 30,
|
|
name: false
|
|
}
|
|
}
|
|
},
|
|
css: {
|
|
loaderOptions: {
|
|
sass: {
|
|
data:
|
|
'@import "@/assets/scss/_var.scss";@import "@/assets/scss/_mixin.scss";'
|
|
}
|
|
}
|
|
}
|
|
};
|