changing the vite config in an attempt to get the service worker to update for iOS devices

This commit is contained in:
csawatzky 2025-10-15 11:09:06 -06:00
parent 9a5e25908f
commit 982fdf85a4

View file

@ -12,6 +12,8 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate', // Automatically updates the service worker when a new version is available
workbox: {
skipWaiting: true, //makes the new worker call skip waiting
clientsClaim: true, //makes it claim control of clients as soon as it activates
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB
cleanupOutdatedCaches: true,