@angular/pwa
PWA schematics for Angular
🌟 Show real-time usage chart on @angular/pwa's README.md, just copy the code below.## Usage Trend
[](https://npm-compare.com/@angular/pwa#timeRange=THREE_YEARS)
🌟 Show GitHub stars trend chart on @angular/pwa's README.md, just copy the code below.## GitHub Stars Trend
[](https://npm-compare.com/@angular/pwa)
@angular/pwa
This is a schematic for adding
Progressive Web App support to an Angular project. Run the
schematic with the Angular CLI:
ng add @angular/pwa --project <project-name>
Executing the command mentioned above will perform the following actions:
- Adds
@angular/service-worker as a dependency to your project.
- Enables service worker builds in the Angular CLI.
- Imports and registers the service worker in the application module.
- Updates the
index.html file to inlclude a link to add the manifest.webmanifest file.
- Installs icon files to support the installed Progressive Web App (PWA).
- Creates the service worker configuration file called
ngsw-config.json, specifying caching behaviors and other settings.
See Getting started with service workers
for more information.