wangziqian 5 лет назад
Родитель
Сommit
696afeca68
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      vue.config.js

+ 1 - 8
vue.config.js

@@ -119,7 +119,7 @@ module.exports = {
                   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
                   test: /[\\/]node_modules[\\/]element-ui[\\/]/, // in order to adapt to cnpm
-                  chunks: 'initial',
+                  chunks: 'all',
                   reuseExistingChunk: true,
                   enforce: true
                 },
@@ -138,13 +138,6 @@ module.exports = {
                   priority: 20,
                   reuseExistingChunk: true,
                   enforce: true
-                },
-                commons: {
-                  name: 'chunk-commons',
-                  test: resolve('src/components'), // can customize your rules
-                  minChunks: 3, //  minimum common number
-                  priority: 5,
-                  reuseExistingChunk: true
                 }
               }
             })