From e813a6d52271cdf9b763a786e9759926a8312bf3 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Mon, 28 Jan 2019 21:34:20 +0100 Subject: [PATCH] azuremonitor: increase memory for webpack build The gigantic monaco dependency needs more memory so it fails on CircleCI with the default memory allocation of 2GB for a worker. --- scripts/grunt/options/exec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/grunt/options/exec.js b/scripts/grunt/options/exec.js index 27bfd7ae43d..0bc5f071206 100644 --- a/scripts/grunt/options/exec.js +++ b/scripts/grunt/options/exec.js @@ -1,4 +1,4 @@ -module.exports = function (config, grunt) { +module.exports = function(config, grunt) { 'use strict'; return { @@ -19,6 +19,7 @@ module.exports = function (config, grunt) { src: ['public/app/**/*.ts*'], }, jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2', - webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js', + webpack: + 'node --max-old-space-size=4096 ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js', }; };