Merge pull request #69 from shprink/patch-1
Adding the file size to the chunk object
This commit is contained in:
commit
89af128acf
1
index.js
1
index.js
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue