Don't insert chunks that is not 'initial'

This commit is contained in:
Vasiliy Yorkin 2015-11-10 21:24:51 +03:00
parent 0a1f3a4464
commit 10e8b5e0a4
1 changed files with 5 additions and 0 deletions

View File

@ -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;