vite-pwa / docs

Documentation: PWA integrations for Vite and the ecosystem

Home Page:https://vite-pwa-org.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

segevfiner opened this issue · comments

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"
  ]
}