Quick start
ng n pwa-sample --minimal
ng add @angular/pwa --project pwa-sample
ng build --prod
Note "Because ng serve does not work with service workers, you must use a separate HTTP server to test your project locally."
http-server -p 8080 -c-1 dist/<project-name>