diff --git a/web/vite.config.ts b/web/vite.config.ts index 647f1559..d1c5cddd 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -155,7 +155,10 @@ export default defineConfig({ } }, injectManifest: { - globPatterns: ['**/*.{js,css,html,ico,png,svg,woff,woff2}'] + globPatterns: ['**/*.{js,css,html,ico,png,svg,woff,woff2}'], + // The app's main chunk exceeds workbox's 2MiB default precache + // cap; raising the limit keeps the SPA fully precached offline. + maximumFileSizeToCacheInBytes: 4 * 1024 * 1024, }, devOptions: { enabled: true,