Modify the postbuild.sh script to write out "npm run build-prod" and
"ng build --prod" to the buildeg.sh script when building the AngularJS
and Angular code, respectively.
Signed-off-by: Jason Stephenson <jason@sigio.com>
# Build the web staff client:
cd /home/opensrf/Evergreen/Open-ILS/web/js/ui/default/staff/
npm install
-npm run build
+npm run build-prod
# Build new, Angular eg2, if present
if [ -d "/home/opensrf/Evergreen/Open-ILS/src/eg2" ]; then
cd /home/opensrf/Evergreen/Open-ILS/src/eg2
npm install
- ng build
+ ng build --prod
fi
cd /home/opensrf/Evergreen