File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,20 @@ Flag | `--dev` | `--prod`
82
82
- Replaces ` process.env.NODE_ENV ` in modules with the ` production ` value (this is needed for some libraries, like react).
83
83
- Runs UglifyJS on the code.
84
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
+
85
99
## Options
86
100
<details >
87
101
<summary >aot</summary >
You can’t perform that action at this time.
0 commit comments