Add reload prompt for when a new update.

This commit is contained in:
Kavin 2023-06-19 03:28:54 +01:00
parent 3c31e89f5e
commit c8f9ae3441
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F
5 changed files with 37 additions and 10 deletions

View file

@ -19,7 +19,7 @@ export default defineConfig({
targets: ["defaults", "not IE 11"],
}),
VitePWA({
registerType: "autoUpdate",
registerType: "prompt",
workbox: {
globPatterns: ["**/*.{js,css,html,ico,svg,png}", "manifest.webmanifest"],
globIgnores: ["**/*-legacy-*.js"],