From bb32aba7cfcb196db78e1809c0ee52a3052176cc Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 10 Aug 2018 19:54:31 -0700 Subject: [PATCH] Adding build optimizer. --- .travis.yml | 2 +- install_dev.sh | 2 +- install_prod.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b27b237..a647819 100755 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ services: before_install: - psql -c "create user simplevote with password 'asdf'" -U postgres - psql -c "create database simplevote with owner simplevote" -U postgres -- cd ui; npm i -g @angular/cli; yarn; ng build --prod --aot; +- cd ui; npm i -g @angular/cli; yarn; ng build --prod --aot --build-optimizer; - cp -R dist/ ../service/src/main/resources - cd ../service addons: diff --git a/install_dev.sh b/install_dev.sh index b6d0932..721203e 100755 --- a/install_dev.sh +++ b/install_dev.sh @@ -1,7 +1,7 @@ # Building the front end cd ui yarn -ng build --aot +ng build --aot --build-optimizer cp -R dist/ ../service/src/main/resources # Building the back end diff --git a/install_prod.sh b/install_prod.sh index 4230723..78fc644 100755 --- a/install_prod.sh +++ b/install_prod.sh @@ -1,7 +1,7 @@ # Building the front end cd ui yarn -ng build --prod --aot +ng build --prod --aot --build-optimizer cp -R dist/ ../service/src/main/resources # Building the back end