vite-pwa / docs

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

`devTools.enabled` in strategy `generateSW` breaks due to wrong `globDirectory` #125

Closed segevfiner closed 8 months ago

segevfiner commented 8 months ago

Turn on devtools.enabled in the default generateSW strategy, once you load the app you will get the following error in Vite output:

warnings
  One of the glob patterns doesn't match any files. Please remove or fix the following: {
  "globDirectory": ".../prj/dev-dist",
  "globPattern": "**/*.{js,css,html,woff,woff2,ttf,eot,mp3}",
  "globIgnores": [
    "**/node_modules/**/*",
    "sw.js",
    "workbox-*.js"
  ]
}
userquin commented 8 months ago

https://vite-pwa-org.netlify.app/guide/faq.html#suppress-workbox-build-warnings-in-dev