فهرست منبع

add some reposity

night-cherry 3 هفته پیش
والد
کامیت
5b020d0837
1فایلهای تغییر یافته به همراه15 افزوده شده و 15 حذف شده
  1. 15 15
      webpack.config.js

+ 15 - 15
webpack.config.js

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