docs: add doc to include updates to the index.html with the new ng add command (#23616)

PR Close #23616
This commit is contained in:
Vani 2018-04-30 10:23:31 -07:00 committed by Igor Minar
parent fd9d1888ce
commit bfad6b4fa1
1 changed files with 6 additions and 2 deletions

View File

@ -23,10 +23,14 @@ ng add @angular/pwa --project *project-name*
The above command completes the following actions:
1. Adds the `@angular/service-worker` package.
1. Adds the `@angular/service-worker` package to your project.
2. Enables service worker build support in the CLI.
3. Imports and registers the service worker in the app module.
4. Creates the service worker configuration file called `ngsw-config.json` which specifies the caching behaviors and other settings.
4. Updates the `index.html` file:
* Includes a link to add the `manifest.json` file.
* Adds meta tags for `theme-color`.
5. Installs icon files to support the installed Progressive Web App (PWA).
6. Creates the service worker configuration file called [`ngsw-config.json`](/guide/service-worker-config), which specifies the caching behaviors and other settings.
Now, build the project: