Steps to deploy PWA using GitHub Pages.
- Create new Angular application.
ng new angular-pwa-demo
- Add PWA dependency
ng add @angular/pwa
- Build the app
ng build --prod --output-path docs --base-href=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/angular-pwa-demo/
-
Add docs directory to GIT and push
-
Build GitHub Pages from the /docs folder in the master branch