From 485e37c79d7527499763a2b1c6c455b23dc1a7dd Mon Sep 17 00:00:00 2001 From: Thomas Sileghem Date: Wed, 25 Sep 2019 20:39:25 +0100 Subject: [PATCH 1/3] prevent jest hanging after tests finish on CI (#196) * prevent jest hanging after tests finish on CI * add --detectOpenHandles to debug * force exit jest --- .travis.yml | 2 +- spec/plugin.integration.spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 30a6b46..8acdbb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: - npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_PLUGIN_VERSION || true script: - - npm test + - npm test -- --forceExit after_script: - $(npm bin)/codecov diff --git a/spec/plugin.integration.spec.js b/spec/plugin.integration.spec.js index cc68f19..60bbab7 100644 --- a/spec/plugin.integration.spec.js +++ b/spec/plugin.integration.spec.js @@ -150,8 +150,8 @@ describe('ManifestPlugin using real fs', function() { hashes = []; }); - afterAll(() => { - compiler.close() + afterAll((done) => { + compiler.close(done) }) it('outputs a manifest of one file', function(done) { @@ -198,8 +198,8 @@ describe('ManifestPlugin using real fs', function() { isFirstRun = true; }); - afterAll(() => { - compiler.close() + afterAll((done) => { + compiler.close(done) }) it('outputs a manifest of one file', function(done) { From b8db85e45d64457f92899341e431198208184923 Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Tue, 23 Oct 2018 15:05:03 +0200 Subject: [PATCH 2/3] Fix high memory usage (#173) closes #174 --- lib/plugin.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index 492733f..40be245 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -56,7 +56,14 @@ ManifestPlugin.prototype.apply = function(compiler) { var seed = this.opts.seed || {}; var publicPath = this.opts.publicPath != null ? this.opts.publicPath : compilation.options.output.publicPath; - var stats = compilation.getStats().toJson(); + var stats = compilation.getStats().toJson({ + // Disable data generation of everything we don't use + all: false, + // Add asset Information + assets: true, + // Show cached assets (setting this to `false` only shows emitted files) + cachedAssets: true, + }); var files = compilation.chunks.reduce(function(files, chunk) { return chunk.files.reduce(function (files, path) { From 0ae710575e29726d1606c5c48bae888438a1bac0 Mon Sep 17 00:00:00 2001 From: Thomas Sileghem Date: Thu, 26 Sep 2019 00:08:12 +0100 Subject: [PATCH 3/3] 2.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c9705a..3c208ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-manifest-plugin", - "version": "2.1.1", + "version": "2.1.2", "description": "webpack plugin for generating asset manifests", "main": "index.js", "scripts": {