This repository is a snapshot of a commit on the original repository. The original code used to generate this is located at http://github.com/angular/angular-cli.
We do not accept PRs or Issues opened on this repository. You should not use this over a tested and released version of this package.
To test this snapshot in your own project, use
npm install git+https://github.com/angular/angular-pwa-builds.git
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:- Includes a link to add the manifest.webmanifest file.
- Adds a meta tag for
theme-color
.
- 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.