fix: pwa tries to include build-only files

This commit is contained in:
2023-12-21 20:05:32 +01:00
parent c1b1544256
commit b4e4ca84a4
3 changed files with 12 additions and 11 deletions

View File

@@ -42,7 +42,8 @@ export default defineConfig({
base: "/",
includeAssets: ["favicon.png"],
workbox: {
globPatterns: ["**/*.{js,css,html,woff2,json,csv,png,svg}"],
// https://vite-pwa-org.netlify.app/frameworks/sveltekit.html#globpatterns
globPatterns: ["client/**/*.{js,css,woff2,json,csv,png,svg}", "prerendered/**/*.html"],
},
manifest: {
name: "CharaChorder Device Manager",