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 1c630e8 commit a33e890Copy full SHA for a33e890
docs/documentation/build.md
@@ -82,6 +82,20 @@ Flag | `--dev` | `--prod`
82
- Replaces `process.env.NODE_ENV` in modules with the `production` value (this is needed for some libraries, like react).
83
- Runs UglifyJS on the code.
84
85
+### Service Worker
86
+
87
+There is experimental service worker support for production builds available in the CLI.
88
+To enable it, run the following commands:
89
+```
90
+npm install @angular/service-worker --save
91
+ng set apps.0.serviceWorker=true
92
93
94
+On `--prod` builds a service worker manifest will be created and loaded automatically.
95
+Remember to disable the service worker while developing to avoid stale code.
96
97
+Note: service worker support is experimental and subject to change.
98
99
## Options
100
<details>
101
<summary>aot</summary>
0 commit comments