mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 12:18:17 +08:00
优化webpack打包规则
This commit is contained in:
@@ -92,7 +92,21 @@ module.exports = configure(function(ctx) {
|
||||
},
|
||||
}],
|
||||
}]);
|
||||
},
|
||||
},
|
||||
extendWebpack(cfg) {
|
||||
cfg.optimization.splitChunks = {
|
||||
chunks: 'all',
|
||||
maxSize: 1 * 1000 * 1000,
|
||||
minSize: 200 * 1000,
|
||||
cacheGroups: {
|
||||
vendors: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: 'vendors',
|
||||
chunks: 'all',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js#Property%3A-devServer
|
||||
|
Reference in New Issue
Block a user