diff --git a/aio/angular.json b/aio/angular.json index 165d18e69a..55ea6471e0 100644 --- a/aio/angular.json +++ b/aio/angular.json @@ -61,7 +61,8 @@ "src": "src/environments/environment.ts", "replaceWith": "src/environments/environment.next.ts" } - ] + ], + "serviceWorker": true }, "stable": { "fileReplacements": [ @@ -69,7 +70,8 @@ "src": "src/environments/environment.ts", "replaceWith": "src/environments/environment.stable.ts" } - ] + ], + "serviceWorker": true }, "archive": { "fileReplacements": [ @@ -77,7 +79,8 @@ "src": "src/environments/environment.ts", "replaceWith": "src/environments/environment.archive.ts" } - ] + ], + "serviceWorker": true } } }, diff --git a/aio/src/ngsw-config.json b/aio/ngsw-config.json similarity index 92% rename from aio/src/ngsw-config.json rename to aio/ngsw-config.json index 8440f5d54d..1341f188c0 100644 --- a/aio/src/ngsw-config.json +++ b/aio/ngsw-config.json @@ -11,17 +11,14 @@ "/pwa-manifest.json", "/app/search/search-worker.js", "/assets/images/favicons/favicon.ico", - "/assets/js/*.js" + "/assets/js/*.js", + "/*.css", + "/*.js" ], "urls": [ "https://fonts.googleapis.com/**", "https://fonts.gstatic.com/s/**", "https://maxcdn.bootstrapcdn.com/**" - ], - "versionedFiles": [ - "/*.bundle.css", - "/*.bundle.js", - "/*.chunk.js" ] } }, {