From 3f100eb23a7407fe481755bc4fba0a8b116485aa Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 26 Sep 2017 02:22:27 +0300 Subject: [PATCH] build(aio): fix the build script (#19390) `ng build ...` must be the last command on the corresponding yarn script, because it needs to be passed extra arguments (such as the target environment) in specific cases. --- aio/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aio/package.json b/aio/package.json index bf38d4650b..8be3374faa 100644 --- a/aio/package.json +++ b/aio/package.json @@ -50,7 +50,8 @@ "postinstall": "uglifyjs node_modules/lunr/lunr.js -c -m -o src/assets/js/lunr.min.js --source-map", "build-ie-polyfills": "node node_modules/webpack/bin/webpack.js -p src/ie-polyfills.js src/generated/ie-polyfills.min.js", "~~check-env": "node scripts/check-environment", - "~~build": "ng build --target=production --environment=stable -sm --build-optimizer && yarn sw-manifest && yarn sw-copy", + "~~build": "ng build --target=production --environment=stable -sm --build-optimizer", + "post~~build": "yarn sw-manifest && yarn sw-copy", "~~update-webdriver": "webdriver-manager update --standalone false --gecko false" }, "engines": {