I'm trying to create a new angular PWA, but when I executeng new pwa --service-worker
the system returns Unknown option: '--service-worker'
Any idea what's wrong?
The --service-worker
option is only available for the ng build
command.
You can generate a PWA by running the regular ng new
command followed by an ng add
command.
ng new pwa
ng add @angular/pwa --project pwa
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With