Compare commits
2 commits
4734a67f5a
...
b9b2d40614
Author | SHA1 | Date | |
---|---|---|---|
|
b9b2d40614 | ||
|
c06d8b8c11 |
2 changed files with 5 additions and 2 deletions
|
@ -55,5 +55,5 @@
|
||||||
"workbox-core": "^7.1.0",
|
"workbox-core": "^7.1.0",
|
||||||
"workbox-precaching": "^7.1.0"
|
"workbox-precaching": "^7.1.0"
|
||||||
},
|
},
|
||||||
"packageManager": "bun@1.1.21"
|
"packageManager": "bun@1.1.32"
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ export default defineConfig(({ mode }) => {
|
||||||
strategies: "injectManifest",
|
strategies: "injectManifest",
|
||||||
registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
devOptions: {
|
devOptions: {
|
||||||
enabled: !["production", "staging"].includes(mode),
|
enabled: true,
|
||||||
},
|
},
|
||||||
srcDir: "src/serviceworker",
|
srcDir: "src/serviceworker",
|
||||||
filename: "main.ts",
|
filename: "main.ts",
|
||||||
|
@ -84,6 +84,9 @@ export default defineConfig(({ mode }) => {
|
||||||
pwaAssets: {
|
pwaAssets: {
|
||||||
config: true,
|
config: true,
|
||||||
},
|
},
|
||||||
|
injectManifest: {
|
||||||
|
globPatterns: ["**/*.{js,wasm,css,html,svg,png,ico}"],
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
version(),
|
version(),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue