You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to enable debug logging for the generated service worker (using the generateSW strategy) when building the app using npm run build. I'm not seeing any log output from workbox in the console. According to the documentation, debugging can be activated by setting mode: development in the workbox options. But this isn't working. I've tried setting the mode to development at every conceivable level to no avail (I'm using the astro integration, but I don't think this makes a difference here):
@justingrant Thanks for the suggestion. I just had another look – the issue was actually Firefox. Apparently, it doesn't show console output from service workers in the devtools, you have to inspect those separately through about:debugging.
In Chrome, you're correct that the output may be hidden based on this setting. Though most of the workbox output is classified as Info, so it should be visible by default.
I'm trying to enable debug logging for the generated service worker (using the
generateSW
strategy) when building the app usingnpm run build
. I'm not seeing any log output from workbox in the console. According to the documentation, debugging can be activated by settingmode: development
in the workbox options. But this isn't working. I've tried setting the mode to development at every conceivable level to no avail (I'm using the astro integration, but I don't think this makes a difference here):I've also tried setting the mode as a CLI parameter:
How can I enable workbox debug logging?
The text was updated successfully, but these errors were encountered: