diff --git a/vite.config.ts b/vite.config.ts index 3dd0b83..ea217fd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,7 +17,8 @@ export default defineConfig({ filename: 'service-worker.js', // cache all asset imports workbox: { - globPatterns: ["**/*"] + globPatterns: ["**/*.{js,css,html,ico,svg,png,jpg,webp}"], + maximumFileSizeToCacheInBytes: 5242880 }, // include all static assets includeAssets: [