https://github.com/angular/angular-pwa-builds
Build artifacts for @angular/pwa
https://github.com/angular/angular-pwa-builds
Last synced: 9 months ago
JSON representation
Build artifacts for @angular/pwa
- Host: GitHub
- URL: https://github.com/angular/angular-pwa-builds
- Owner: angular
- License: mit
- Created: 2018-03-28T22:58:38.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T18:41:30.000Z (over 1 year ago)
- Last Synced: 2024-12-25T05:31:23.999Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.89 MB
- Stars: 12
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snapshot build of @angular/pwa
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
```bash
npm install git+https://github.com/angular/angular-pwa-builds.git
```
----
# `@angular/pwa`
This is a [schematic](https://angular.dev/tools/cli/schematics) for adding
[Progressive Web App](https://web.dev/progressive-web-apps/) support to an Angular project. Run the
schematic with the [Angular CLI](https://angular.dev/tools/cli):
```shell
ng add @angular/pwa --project
```
Executing the command mentioned above will perform the following actions:
1. Adds [`@angular/service-worker`](https://npmjs.com/@angular/service-worker) as a dependency to your project.
1. Enables service worker builds in the Angular CLI.
1. Imports and registers the service worker in the application module.
1. Updates the `index.html` file to inlclude a link to add the [manifest.webmanifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) file.
1. Installs icon files to support the installed Progressive Web App (PWA).
1. Creates the service worker configuration file called `ngsw-config.json`, specifying caching behaviors and other settings.
See [Getting started with service workers](https://angular.dev/ecosystem/service-workers/getting-started)
for more information.