I think the phrase here is a little misleading. If you look at an example on the same documentation page , it will become more understandable.
Once you start with code splitting, the term chunk may refer to
- your input fragments that have children created by the split points of your code,
- pieces created by your split points (i.e. children of your records) or
- part of the total volume that you merge with CommonsChunkPlugin.
, , , CommonsChunkPlugin, , . "name" CommonsChunkPlugin. , , , . , "", CommonsChunkPlugin "" "".
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
children: true
})
"", :
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
filename: 'common-code.js',
children: true,
async: true
})
true commons
"commons chunk", , "entry chunk".