|
@@ -109,13 +109,10 @@ module.exports = {
|
|
|
.optimization.splitChunks({
|
|
|
chunks: 'all',
|
|
|
cacheGroups: {
|
|
|
- vendors: {
|
|
|
- name: 'chunk-vendors',
|
|
|
+ libs: {
|
|
|
+ name: 'chunk-libs',
|
|
|
test: /[\\/]node_modules[\\/]/,
|
|
|
- chunks: 'initial',
|
|
|
- priority: 2,
|
|
|
- reuseExistingChunk: true,
|
|
|
- enforce: true
|
|
|
+ priority: -10
|
|
|
},
|
|
|
elementUI: {
|
|
|
name: 'chunk-elementUI', // split elementUI into a single package
|