We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to build the service worker for some reason includes the server files, which throws an error at runtime.
It appears that the glob is defaulting to "server/.". When I tried to override by manually adding this to globIgnores, it still didn't work.
globIgnores
However, it did work when I changed to either server/**/* or server/**, suggesting that potentially this default glob isn't functioning properly?
server/**/*
server/**
"vite-plugin-pwa": "^0.20.1", "@sveltejs/kit": "^1.30.4", "vite": "^4.5.3", "@vite-pwa/sveltekit": "^0.6.0", "svelte": "^4.2.18",
SvelteKitPWA({ srcDir: "build", registerType: "prompt", mode: mode === "development" ? "development" : "production", workbox: { cleanupOutdatedCaches: true, inlineWorkboxRuntime: true, maximumFileSizeToCacheInBytes: 1024 * 1024 * 1024, globPatterns: ["**/*.{js,css,ico,png,svg,webp,woff,woff2,ttf}"], // This is a little patch seems to correct the issue globIgnores: ["server/**"], }, strategies: "generateSW", includeAssets: [".well-known/assetlinks.json", "apple-app-site-association"], manifest: { name: "name", short_name: "name" description: "desc", theme_color: "#403053", background_color: "#403053", icons: [... ], }, })
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Attempting to build the service worker for some reason includes the server files, which throws an error at runtime.
It appears that the glob is defaulting to "server/.". When I tried to override by manually adding this to
globIgnores
, it still didn't work.However, it did work when I changed to either
server/**/*
orserver/**
, suggesting that potentially this default glob isn't functioning properly?The text was updated successfully, but these errors were encountered: