From 236cf1eb063fb89d43b34ef9df705a21d732e2f2 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 22 Sep 2017 11:32:08 +0300 Subject: [PATCH] renamed the HMR starting scripts + modified the build scripts to use more memory. If you are having `out of memory` issues while building, use these scripts --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index abb7c72d..b17493de 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "scripts": { "ng": "ng", "start": "ng serve", - "hmr": "ng serve --hmr -e=hmr -sm=false", - "hmrs": "ng serve --hmr -e=hmr", - "build": "ng build", + "start-hmr": "ng serve --hmr -e=hmr -sm=false", + "start-hmr-sourcemaps": "ng serve --hmr -e=hmr", + "build": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build", + "build-prod": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --prod", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e"