feat: implement PWA update prompt and manual reload

This commit is contained in:
2026-02-10 21:16:28 +01:00
parent 81ed97b263
commit e39ac9a794
5 changed files with 122 additions and 23 deletions

View File

@@ -10,12 +10,11 @@ export default defineConfig({
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
registerType: 'prompt',
injectRegister: 'auto',
workbox: {
cleanupOutdatedCaches: true,
skipWaiting: true,
clientsClaim: true,
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,vue,txt,woff2}']
},
devOptions: {
enabled: true