Compare commits

...

2 commits

Author SHA1 Message Date
thislight
b9b2d40614
package: update bun version
All checks were successful
/ depoly (push) Successful in 1m16s
2024-10-27 14:21:31 +08:00
thislight
c06d8b8c11
vite: precache images for pwa 2024-10-27 14:19:56 +08:00
2 changed files with 5 additions and 2 deletions

View file

@ -55,5 +55,5 @@
"workbox-core": "^7.1.0",
"workbox-precaching": "^7.1.0"
},
"packageManager": "bun@1.1.21"
"packageManager": "bun@1.1.32"
}

View file

@ -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(),
],