night-cherry 3 тижнів тому
батько
коміт
e91015bd0f
1 змінених файлів з 7 додано та 7 видалено
  1. 7 7
      webpack.config.js

+ 7 - 7
webpack.config.js

@@ -86,15 +86,15 @@ module.exports={
   // 优化配置(如代码拆分)
   optimization: {
     splitChunks: {
-      chunks: 'index',
+      chunks: 'all',
       minSize: 20000,
       cacheGroups: {
-        vendors: {
-          test: /[\\/]node_modules[\\/]/,
-          priority: -10,
-          reuseExistingChunk: true,
-          name: 'vendors'
-        }
+        // vendors: {
+        //   test: /[\\/]node_modules[\\/]/,
+        //   priority: -10,
+        //   reuseExistingChunk: true,
+        //   name: 'vendors'
+        // }
       }
     }
   }