PWA build with InjectManifest is broken #17745
Labels
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
mode/pwa
Qv2 🔝
Quasar v2 issues
What happened?
I use @quasar/app-webpack with a vanila quasar project. Initialized with quasar cli and selected webpack. Then I added PWA mode and changed quasar.conf.ts to have workboxMode: 'InjectManifest'.
When building for PWA the sw.js files has require statements which is not supported and points to files that does not exits. It seems that the Esbuild setup does not have bundle mode enabled?
I also tried to set bundle mode true in
extendPWACustomSWConf
, but this did not have any effect?What did you expect to happen?
The sw.js file genrated should be bundled with all imports and should not use require statements.
Reproduction URL
https://codepen.io/rstoenescu/pen/xxEvBLR
How to reproduce?
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
PWA Mode
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: