优化代码

pull/16/head
nineven 4 years ago
parent 30e7e69ff8
commit cfc31fc9d8
  1. 12
      fir_client/vue.config.js

@ -54,7 +54,16 @@ module.exports = {
},
productionSourceMap: false,
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: '应用分发',
resolve: {
alias: {
'@': resolve('src')
}
}
},
chainWebpack: config => {
if (!IS_PROD) {
@ -71,7 +80,6 @@ module.exports = {
})
}
config.resolve.alias.set('@',resolve("src"));
config.optimization.splitChunks({
cacheGroups: {

Loading…
Cancel
Save