Skip to content

Commit fae524b

Browse files
committed
[build,pwa]: set maximum cache file size to 5mb;
1 parent f193b18 commit fae524b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineConfig({
3636
registerType: 'autoUpdate',
3737
workbox: {
3838
globPatterns: ['**/*.{html,js,css,png,jpg,svg,ico,json,woff2,ttf,mp4}'],
39+
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MB limit
3940
runtimeCaching: [
4041
{
4142
urlPattern: ({ request }) => request.destination === 'document',

0 commit comments

Comments
 (0)