@angular/pwa 16.2.1 → 16.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# `@angular/pwa`
|
|
2
2
|
|
|
3
3
|
This is a [schematic](https://angular.io/guide/schematics) for adding
|
|
4
|
-
[
|
|
4
|
+
[Progressive Web App](https://web.dev/progressive-web-apps/) support to an Angular project. Run the
|
|
5
5
|
schematic with the [Angular CLI](https://angular.io/cli):
|
|
6
6
|
|
|
7
7
|
```shell
|
|
8
|
-
ng add @angular/pwa
|
|
8
|
+
ng add @angular/pwa --project <project-name>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Executing the command mentioned above will perform the following actions:
|
|
12
12
|
|
|
13
|
-
1. Adds [`@angular/service-worker`](https://npmjs.com/@angular/service-worker) as a dependency.
|
|
13
|
+
1. Adds [`@angular/service-worker`](https://npmjs.com/@angular/service-worker) as a dependency to your project.
|
|
14
14
|
1. Enables service worker builds in the Angular CLI.
|
|
15
|
-
1. Imports and registers the service worker in the
|
|
16
|
-
1.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
1.
|
|
15
|
+
1. Imports and registers the service worker in the application module.
|
|
16
|
+
1. Updates the `index.html` file:
|
|
17
|
+
- Includes a link to add the [manifest.webmanifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) file.
|
|
18
|
+
- Adds a meta tag for `theme-color`.
|
|
19
|
+
1. Installs icon files to support the installed Progressive Web App (PWA).
|
|
20
|
+
1. Creates the service worker configuration file called `ngsw-config.json`, specifying caching behaviors and other settings.
|
|
20
21
|
|
|
21
22
|
See [Getting started with service workers](https://angular.io/guide/service-worker-getting-started)
|
|
22
23
|
for more information.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/pwa",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.2",
|
|
4
4
|
"description": "PWA schematics for Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular CLI",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"save": false
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@angular-devkit/schematics": "16.2.
|
|
21
|
-
"@schematics/angular": "16.2.
|
|
20
|
+
"@angular-devkit/schematics": "16.2.2",
|
|
21
|
+
"@schematics/angular": "16.2.2",
|
|
22
22
|
"parse5-html-rewriting-stream": "7.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|