Don't insert chunks that is not 'initial'
This commit is contained in:
parent
0a1f3a4464
commit
10e8b5e0a4
5
index.js
5
index.js
|
|
@ -220,6 +220,11 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function(compilation, webp
|
|||
continue;
|
||||
}
|
||||
|
||||
// Skip not initial chunks
|
||||
if (!chunk.initial) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip if the chunks should be filtered and the given chunk was not added explicity
|
||||
if (Array.isArray(includedChunks) && includedChunks.indexOf(chunkName) === -1) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue