UNPKG

951 BMarkdownView Raw
1# `@angular/pwa`
2
3This is a [schematic](https://angular.io/guide/schematics) for adding
4[Progress Web App](https://web.dev/progressive-web-apps/) support to an Angular app. Run the
5schematic with the [Angular CLI](https://angular.io/cli):
6
7```shell
8ng add @angular/pwa
9```
10
11This makes a few changes to your project:
12
131. Adds [`@angular/service-worker`](https://npmjs.com/@angular/service-worker) as a dependency.
141. Enables service worker builds in the Angular CLI.
151. Imports and registers the service worker in the app module.
161. Adds a [web app manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest).
171. Updates the `index.html` file to link to the manifest and set theme colors.
181. Adds required icons for the manifest.
191. Creates a config file `ngsw-config.json`, specifying caching behaviors and other settings.
20
21See [Getting started with service workers](https://angular.io/guide/service-worker-getting-started)
22for more information.