dev #4

Merged
nessi merged 25 commits from dev into main 2026-02-06 13:36:47 +00:00
2 changed files with 10 additions and 0 deletions
Showing only changes of commit 9aa3532dd6 - Show all commits

View File

@@ -5,3 +5,10 @@ import { registerSW } from "virtual:pwa-register";
createRoot(document.getElementById("root")).render(<App />);
registerSW({ immediate: true });
const updateSW = registerSW({
immediate: true,
onNeedRefresh() {
updateSW(true); // sofort neue Version aktivieren
window.location.reload();
},
});

View File

@@ -28,6 +28,9 @@ export default defineConfig({
workbox: {
// Caching-Default: die App-Shell wird offline verfügbar
globPatterns: ["**/*.{js,css,html,ico,png,jpg,jpeg,svg,webp}"],
cleanupOutdatedCaches: true,
skipWaiting: true,
clientsClaim: true,
}
})
]