From bfad6b4fa150f0db7ab30cbe05f5765962a077ce Mon Sep 17 00:00:00 2001 From: Vani Date: Mon, 30 Apr 2018 10:23:31 -0700 Subject: [PATCH] docs: add doc to include updates to the index.html with the new ng add command (#23616) PR Close #23616 --- aio/content/guide/service-worker-getting-started.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/service-worker-getting-started.md b/aio/content/guide/service-worker-getting-started.md index ecebada1aa..45d3c3b2d7 100644 --- a/aio/content/guide/service-worker-getting-started.md +++ b/aio/content/guide/service-worker-getting-started.md @@ -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: