ionic-team / ionic-team/ionic-cli
Removing service worker for Cordova builds
Đang mở
triage
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 682
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
For a project that builds both Cordova native apps and PWAs via `ng add @angular/pwa` would be nice if the CLI removed the service worker when doing a Cordova build. Currently have to set the *serviceWorker* field in `angular.json` to false and remove the *ServiceWorkerModule* register in `app.module.ts` otherwise the Cordova build will try to register a service work and output an error (which it should). But would be nice if the CLI was able to handle this automatically based on if I'm doing a `ionic build --prod` for PWA or `ionic cordova run android` for native.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.