You've already forked ConsulManager
mirror of
https://github.com/starsliao/TenSunS.git
synced 2025-12-18 12:03:57 +08:00
优化前端
This commit is contained in:
@@ -104,6 +104,12 @@ module.exports = {
|
||||
.optimization.splitChunks({
|
||||
chunks: 'all',
|
||||
cacheGroups: {
|
||||
vue: {
|
||||
name: 'chunk-vuejs',
|
||||
test: /[\\/]node_modules[\\/]_?vue(.*)/,
|
||||
priority: 30,
|
||||
chunks: 'initial'
|
||||
},
|
||||
libs: {
|
||||
name: 'chunk-libs',
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
@@ -113,7 +119,8 @@ module.exports = {
|
||||
elementUI: {
|
||||
name: 'chunk-elementUI', // split elementUI into a single package
|
||||
priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
|
||||
test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
|
||||
test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
|
||||
chunks: 'initial'
|
||||
},
|
||||
commons: {
|
||||
name: 'chunk-commons',
|
||||
|
||||
Reference in New Issue
Block a user