Skip to content

Commit b8db85e

Browse files
bewmastilver
authored andcommitted
Fix high memory usage (#173)
closes #174
1 parent 485e37c commit b8db85e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/plugin.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ ManifestPlugin.prototype.apply = function(compiler) {
5656
var seed = this.opts.seed || {};
5757

5858
var publicPath = this.opts.publicPath != null ? this.opts.publicPath : compilation.options.output.publicPath;
59-
var stats = compilation.getStats().toJson();
59+
var stats = compilation.getStats().toJson({
60+
// Disable data generation of everything we don't use
61+
all: false,
62+
// Add asset Information
63+
assets: true,
64+
// Show cached assets (setting this to `false` only shows emitted files)
65+
cachedAssets: true,
66+
});
6067

6168
var files = compilation.chunks.reduce(function(files, chunk) {
6269
return chunk.files.reduce(function (files, path) {

0 commit comments

Comments
 (0)