diff --git a/vite.config.ts b/vite.config.ts index db04793..3b37a34 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -76,7 +76,7 @@ export default defineConfig(({ mode }) => { strategies: "injectManifest", registerType: "autoUpdate", devOptions: { - enabled: !["production", "staging"].includes(mode), + enabled: true, }, srcDir: "src/serviceworker", filename: "main.ts", @@ -84,6 +84,9 @@ export default defineConfig(({ mode }) => { pwaAssets: { config: true, }, + injectManifest: { + globPatterns: ["**/*.{js,wasm,css,html,svg,png,ico}"], + }, }), version(), ],