Angular ServiceWorkers + MIME type error
问题 I'm trying to add service workers to our existing angular (5.2, CLI 1.7.1) application. I did everything I was suppose to: I created ngsw-config.json I run the the ng set apps.0.serviceWorker=true command so I have "serviceWorker": true, in angular-cli.json . I have installed "@angular/service-worker": "5.2.9" I added to app.module.ts : import { ServiceWorkerModule } from '@angular/service-worker'; imports: [ ... ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment