fix(pwa): add workbox cleanup options to fix undefined payload error
All checks were successful
Deploy to Production / deploy (push) Successful in 7s

This commit is contained in:
2026-02-26 23:52:47 +00:00
parent c3f96bacc7
commit 7c4f1b20b3
4 changed files with 3498 additions and 1 deletions

View File

@@ -28,7 +28,16 @@ export default defineConfig({
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,vue,txt,woff2}']
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,vue,txt,woff2}'],
cleanupOutdatedCaches: true,
clientsClaim: true,
skipWaiting: true
},
devOptions: {
enabled: true,
/* when using generateSW the PWA plugin will switch to classic */
type: 'module',
navigateFallback: 'index.html',
}
})
],