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
This commit is contained in:
Sercan Yemen 2017-09-22 11:32:08 +03:00
parent f4efbe07f7
commit 236cf1eb06

View File

@ -5,9 +5,10 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"hmr": "ng serve --hmr -e=hmr -sm=false", "start-hmr": "ng serve --hmr -e=hmr -sm=false",
"hmrs": "ng serve --hmr -e=hmr", "start-hmr-sourcemaps": "ng serve --hmr -e=hmr",
"build": "ng build", "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", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"