progressive-web-apps

No Service worker files ngsw.json / ngsw-worker.json generated when running build --prod. Angular 5

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-02 07:15:21
问题 Using angular 5.1.2 Angular-cli 1.6.3 all files are pretty vanilla. dist folder is created My ngsw-config.json { "index": "/index.html", "assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": [ "/favicon.ico", "/index.html" ], "versionedFiles": [ "/*.bundle.css", "/*.bundle.js", "/*.chunk.js" ] } }, { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**" ] } }] } my app.module.ts uses ServiceWorkerModule