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 renamed workbox-config.js to workbox-config.cjs - then it works okay -
$ npx workbox-cli generateSW workbox-config.js
Using configuration from workbox-config.cjs.
The service worker files were written to:
• .../public/sw.js
• .../public/sw.js.map
• .../public/workbox-5911a5e4.js
• .../public/workbox-5911a5e4.js.map
The service worker will precache 62 URLs, totaling 179 kB.
So should the wizard default to writing a .cjs file instead of .js?