fix: service-worker
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kieran 2024-03-07 17:08:51 +00:00
parent 2b98f0fc4a
commit 4a7073b231
3 changed files with 12 additions and 10 deletions

View File

@ -120,7 +120,7 @@
"tinybench": "^2.5.1", "tinybench": "^2.5.1",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^5.1.5", "vite": "^5.1.5",
"vite-plugin-pwa": "^0.17.0", "vite-plugin-pwa": "^0.19.2",
"vite-plugin-version-mark": "^0.0.10", "vite-plugin-version-mark": "^0.0.10",
"vitest": "^0.34.6" "vitest": "^0.34.6"
} }

View File

@ -12,16 +12,14 @@ export default defineConfig({
}), }),
VitePWA({ VitePWA({
strategies: "injectManifest", strategies: "injectManifest",
injectRegister: "inline",
srcDir: "src", srcDir: "src",
filename: "service-worker.ts", filename: "service-worker.ts",
registerType: "autoUpdate",
devOptions: { devOptions: {
enabled: true, enabled: true,
type: "module", type: "module",
}, },
workbox: {
globPatterns: ["**/*.{js,html,wasm,woff,woff2,ttf,svg,png,jpg,jpeg,webp,ico,json}"],
sourcemap: true,
},
}), }),
visualizer({ visualizer({
open: true, open: true,

View File

@ -3172,7 +3172,7 @@ __metadata:
use-sync-external-store: ^1.2.0 use-sync-external-store: ^1.2.0
uuid: ^9.0.0 uuid: ^9.0.0
vite: ^5.1.5 vite: ^5.1.5
vite-plugin-pwa: ^0.17.0 vite-plugin-pwa: ^0.19.2
vite-plugin-version-mark: ^0.0.10 vite-plugin-version-mark: ^0.0.10
vitest: ^0.34.6 vitest: ^0.34.6
workbox-cacheable-response: ^7.0.0 workbox-cacheable-response: ^7.0.0
@ -11967,9 +11967,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"vite-plugin-pwa@npm:^0.17.0": "vite-plugin-pwa@npm:^0.19.2":
version: 0.17.0 version: 0.19.2
resolution: "vite-plugin-pwa@npm:0.17.0" resolution: "vite-plugin-pwa@npm:0.19.2"
dependencies: dependencies:
debug: ^4.3.4 debug: ^4.3.4
fast-glob: ^3.3.2 fast-glob: ^3.3.2
@ -11977,10 +11977,14 @@ __metadata:
workbox-build: ^7.0.0 workbox-build: ^7.0.0
workbox-window: ^7.0.0 workbox-window: ^7.0.0
peerDependencies: peerDependencies:
"@vite-pwa/assets-generator": ^0.2.4
vite: ^3.1.0 || ^4.0.0 || ^5.0.0 vite: ^3.1.0 || ^4.0.0 || ^5.0.0
workbox-build: ^7.0.0 workbox-build: ^7.0.0
workbox-window: ^7.0.0 workbox-window: ^7.0.0
checksum: 787444711c30103a3738f3415fd27874fadb5e72ccdbf907b93f27559872f541fffebbdc1474202e21117811582af500d01359b19121605ff976a9cb4fb3d02c peerDependenciesMeta:
"@vite-pwa/assets-generator":
optional: true
checksum: 3c7840047ce56047d6f8b150591683558f4efac380bcc22db9d6c2da275d705b0e438d31c0f02edaaf2c0725de87604247f771a0e867847200801f976fb9f98f
languageName: node languageName: node
linkType: hard linkType: hard