build: update production build script (#437)
- Fix heap memory allocation issue - Update package.json and .travis.yml Fixes: #436
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- ng lint
|
- ng lint
|
||||||
- ng build --prod --output-hashing=none --base-href="/web-app/"
|
- npm run build:prod
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"build": "npm run env -s && ng build --prod --output-hashing=none",
|
"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/\"",
|
||||||
"start": "npm run env -s && ng serve --aot --proxy-config proxy.conf.js",
|
"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",
|
"serve:sw": "npm run build -s && npx http-server ./dist -p 4200",
|
||||||
"lint": "ng lint && stylelint \"src/**/*.scss\" --syntax scss && htmlhint \"src\" --config .htmlhintrc",
|
"lint": "ng lint && stylelint \"src/**/*.scss\" --syntax scss && htmlhint \"src\" --config .htmlhintrc",
|
||||||
|
|||||||
Reference in New Issue
Block a user