Merge pull request #69 from shprink/patch-1

Adding the file size to the chunk object
This commit is contained in:
Jan Nicklas 2015-07-13 11:59:23 +02:00
commit 89af128acf
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ HtmlWebpackPlugin.prototype.htmlWebpackPluginAssets = function(compilation, webp
// Webpack outputs an array for each chunk when using sourcemaps
// But we need only the entry file
var entry = chunkFiles[0];
assets.chunks[chunkName].size = chunk.size;
assets.chunks[chunkName].entry = entry;
assets.js.push(entry);