@angular/pwa
package that can be used to automate this.@angular/pwa
package will automatically add a service worker and a app manifest to the app. To add this package to the app run:ionic build --prod
and the www
directory will be ready to deploy as a PWA.@angular/pwa
has been added, a new ngsw-config.json
file will be created at the root of the project. This file is responsible for configuring how Angular's service worker mechanism will handle caching assets.