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:
parent
fd9d1888ce
commit
bfad6b4fa1
|
@ -23,10 +23,14 @@ ng add @angular/pwa --project *project-name*
|
||||||
|
|
||||||
The above command completes the following actions:
|
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.
|
2. Enables service worker build support in the CLI.
|
||||||
3. Imports and registers the service worker in the app module.
|
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:
|
Now, build the project:
|
||||||
|
|
Loading…
Reference in New Issue