build: update production build script (#569)

Update package.json to increase heap memory limit from 4 GB to 16 GB.

See: #436
This commit is contained in:
Abhay Chawla
2020-01-11 23:45:54 +03:00
committed by GitHub
parent 8c56783e97
commit 98b01e0376
+1 -1
View File
@@ -13,7 +13,7 @@
"scripts": {
"ng": "ng",
"build": "npm run env -s && ng build --prod --output-hashing=none",
"build:prod": "node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing=none --base-href=\"/web-app/\"",
"build:prod": "node --max-old-space-size=16384 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing=none --base-href=\"/web-app/\"",
"start": "npm run env -s && ng serve --aot --proxy-config proxy.conf.js",
"serve:sw": "npm run build -s && npx http-server ./dist -p 4200",
"lint": "ng lint && stylelint \"src/**/*.scss\" --syntax scss && htmlhint \"src\" --config .htmlhintrc",