Skip to content

Commit

Permalink
Get only needed stats to greatly reduce memory consumption (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeg authored and webdeveric committed Feb 12, 2019
1 parent 7caabea commit 051243e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WebpackAssetsManifest.js
Expand Up @@ -442,7 +442,10 @@ class WebpackAssetsManifest
*/
handleEmit(compilation, callback)
{
this.stats = compilation.getStats().toJson();
this.stats = compilation.getStats().toJson({
all: false,
assets: true,
});

this.processAssetsByChunkName( this.stats.assetsByChunkName );

Expand Down

0 comments on commit 051243e

Please sign in to comment.