No Service worker files ngsw.json / ngsw-worker.json generated when running build --prod. Angular 5
问题 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