From 620c508edb2b655f4e563bd599d2897fa44152e3 Mon Sep 17 00:00:00 2001 From: Abhay Chawla Date: Sat, 13 Jul 2019 16:29:13 +0530 Subject: [PATCH] build: update production build script (#437) - Fix heap memory allocation issue - Update package.json and .travis.yml Fixes: #436 --- .travis.yml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 84c8ca7b7..cfa1d3e87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_script: script: - ng lint - - ng build --prod --output-hashing=none --base-href="/web-app/" + - npm run build:prod deploy: provider: pages @@ -20,4 +20,4 @@ deploy: github-token: $GITHUB_TOKEN keep-history: true on: - branch: gsoc-19 \ No newline at end of file + branch: gsoc-19 diff --git a/package.json b/package.json index da55a012f..d2ad4ba0a 100644 --- a/package.json +++ b/package.json @@ -13,6 +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/\"", "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",