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