From 3e418e1b8895f786d8fac723d5da6632b95840f5 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 18 Jan 2017 15:39:27 -0800 Subject: [PATCH] Increase npm run watch/compile max RAM to 4gb Node defaults to a limit of 1.7gb apparently, this causes issues particularly on Windows where it's easy to hit this limit. This change rolls the limit adjustment into npm run watch and npm run compile. Fixes #7108 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 58b7ea64d49..14a16d25fd0 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "test": "mocha", "preinstall": "node build/npm/preinstall.js", "postinstall": "node build/npm/postinstall.js", - "compile": "gulp compile", - "watch": "gulp watch", + "compile": "gulp compile --max-old-space-size=4096", + "watch": "gulp watch --max-old-space-size=4096", "monaco-editor-setup": "node scripts/monaco-editor-setup.js", "monaco-editor-test": "mocha --only-monaco-editor" },