vite-plugin-pwa: enable dev sw for not production
This commit is contained in:
parent
e08c978b10
commit
8d9e4b1c48
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default defineConfig(({ mode }) => ({
|
||||||
strategies: "injectManifest",
|
strategies: "injectManifest",
|
||||||
registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
devOptions: {
|
devOptions: {
|
||||||
enabled: mode === "staging" || mode === "dev",
|
enabled: mode !== "production",
|
||||||
},
|
},
|
||||||
srcDir: "src/serviceworker",
|
srcDir: "src/serviceworker",
|
||||||
filename: "main.ts",
|
filename: "main.ts",
|
||||||
|
|
Loading…
Reference in a new issue