Skip to content

Commit

Permalink
Merge pull request #115 from vyorkin/bugfix/skip-async-chunks
Browse files Browse the repository at this point in the history
Don't insert chunks that is not 'initial'
  • Loading branch information
jantimon committed Nov 23, 2015
2 parents 0a1f3a4 + 10e8b5e commit 83ad4de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83ad4de

Please sign in to comment.