Skip to content

Commit e40b70c

Browse files
committed
删除提取公共模块的优化
1 parent e123dca commit e40b70c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

webpack.common.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ module.exports = {
1313
path: path.resolve(__dirname, "dist"),
1414
},
1515
optimization: {
16-
// 提取公用代码块,优化打包大小必备
17-
splitChunks: {
18-
cacheGroups: {
19-
commons: {
20-
name: "commons",//公用代码块名称
21-
chunks: "initial",
22-
minChunks: 1
23-
}
24-
}
25-
}
2616
},
2717
plugins: [
2818
// 在打包后的文件头插入一些banner信息,官方插件:

0 commit comments

Comments
 (0)