|
@@ -94,19 +94,19 @@ module.exports={
|
|
chunks:['sample'],
|
|
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'
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
}
|
|
}
|