From 74345f34ae272154bbae41d093a56f226858068b Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 8 Nov 2021 15:54:17 +0200 Subject: [PATCH] build(docs-infra): remove unnecessary work-around for SW config generation (#44114) Since angular.io is now updated to a version that includes the fix from #43679, the work-around added in 841c5aebbfc7f40fdf838cc3e73395cf8b94bdf9 can now be removed. PR Close #44114 --- aio/ngsw-config.template.json | 5 +---- aio/package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/aio/ngsw-config.template.json b/aio/ngsw-config.template.json index c998831bb3c02..9a84cc8416374 100644 --- a/aio/ngsw-config.template.json +++ b/aio/ngsw-config.template.json @@ -13,10 +13,7 @@ "/assets/images/favicons/favicon.ico", "/assets/js/*.js", "/*.css", - "/*.js", - "!/ngsw-worker.js", - "!/safety-worker.js", - "!/worker-basic.min.js" + "/*.js" ], "urls": [ "https://fonts.googleapis.com/**", diff --git a/aio/package.json b/aio/package.json index 47002a364e4f4..94c67ee8e6333 100644 --- a/aio/package.json +++ b/aio/package.json @@ -74,7 +74,7 @@ "~~clean-generated": "node --eval \"require('shelljs').rm('-rf', 'src/generated')\"", "pre~~build": "node scripts/build-ngsw-config", "~~build": "ng build --configuration=stable", - "post~~build": "yarn build-404-page && ngsw-config dist src/generated/ngsw-config.json", + "post~~build": "yarn build-404-page", "~~light-server": "light-server --bind=localhost --historyindex=/index.html --no-reload" }, "//engines-comment": "If applicable, also update /package.json and /aio/tools/examples/shared/package.json",