|
@@ -119,7 +119,7 @@ module.exports = {
|
|
name: 'chunk-elementUI', // split elementUI into a single package
|
|
name: 'chunk-elementUI', // split elementUI into a single package
|
|
priority: 15, // the weight needs to be larger than libs and app or it will be packaged into libs or app
|
|
priority: 15, // 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',
|
|
|
|
|
|
+ chunks: 'all',
|
|
reuseExistingChunk: true,
|
|
reuseExistingChunk: true,
|
|
enforce: true
|
|
enforce: true
|
|
},
|
|
},
|
|
@@ -138,13 +138,6 @@ module.exports = {
|
|
priority: 20,
|
|
priority: 20,
|
|
reuseExistingChunk: true,
|
|
reuseExistingChunk: true,
|
|
enforce: true
|
|
enforce: true
|
|
- },
|
|
|
|
- commons: {
|
|
|
|
- name: 'chunk-commons',
|
|
|
|
- test: resolve('src/components'), // can customize your rules
|
|
|
|
- minChunks: 3, // minimum common number
|
|
|
|
- priority: 5,
|
|
|
|
- reuseExistingChunk: true
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|