feat: implement PWA update prompt and manual reload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user