vite-pwa / docs

Documentation: PWA integrations for Vite and the ecosystem
https://vite-pwa-org.netlify.app/
MIT License
196 stars 42 forks source link

No workbox debug logs in with `devtools.enabled` and strategy `injectedManifest` #126

Closed segevfiner closed 5 months ago

segevfiner commented 6 months ago

Create a project with strategy injectedManifest and any basic service worker utilizing workbox, enable devtools.enabled and devtools.type: "module", and see that there are no debug logs from workbox when you load the app, adding the mode: "development" setting to VitePWA doesn't help.

userquin commented 6 months ago

It is devOptions, I can see the workbox modules logs in any example in pwa plugin repo, for example running dev script in the vue-router example: workbox modules will use process.env.NODE_ENV to enable/disable logs (dead code elimination)

imagen