Skip to content

Commit 7d7843e

Browse files
author
杨益良
committed
config5
1 parent 21be9f7 commit 7d7843e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

part1/example1/webpackconfigs/config5.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ hash 为生成的html引用的js添加hash值<script src="UIStuff.js?6f347301ad
3838
默认所有的chunks都会在html上引入,chunks: ['index'] 是筛选html引用的chunk
3939
excludeChunks: ['index'] 排除不引用的chunk,
4040
inject 控制chunk插入的地方 ,默认是body里面
41+
42+
CommonsChunkPlugin 会把被两个以上的chunk调用的部分抽取出来放到一个文件中,在用到的
43+
chunk中调用其模块,模块都是挂在。 如果不用这个插件,则就是以每一个文件为一个单元进行模块的调用,
44+
4145
*/

0 commit comments

Comments
 (0)