We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a488e65 commit 69a993bCopy full SHA for 69a993b
packages/schematics/angular/application/other-files/app.module.ts
@@ -15,7 +15,7 @@ import { environment } from '../environments/environment';<% } %>
15
imports: [
16
BrowserModule<% if (routing) { %>,
17
AppRoutingModule<% } %><% if (serviceWorker) { %>,
18
- environment.production ? ServiceWorkerModule.register('/ngsw-worker.js') : []<% } %>
+ ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production })<% } %>
19
],
20
providers: [],
21
bootstrap: [AppComponent]
0 commit comments