From 11982240befe71b3e65418ae5c04ca19c6119ff6 Mon Sep 17 00:00:00 2001 From: henrytk Date: Wed, 4 Jul 2018 10:23:28 +0100 Subject: [PATCH] Prevent webpack from hanging during staging Staging was hanging indefinitely when it started optimizing assets (part of the `npm run build` postinstall script). I didn't investigate fully, but it seems to be related to Node's poor grasp of system resources[1,2,3]. One suspect was identified in the build output: ``` > npm run build (node:46) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit ``` [1] https://github.com/webpack/webpack/issues/2012#issuecomment-337263767 [2] https://github.com/webpack/webpack/issues/4558 [3] https://github.com/webpack-contrib/sass-loader/issues/100 --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 190f63e162..b91332ec1b 100644 --- a/package.json +++ b/package.json @@ -259,4 +259,3 @@ "reporter": "lcov" } } -