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?
- OS: ubuntu gnome 16.04
- Node: v10.16.0
- Npm: 6.9.0
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