increasing max file size for caching to 20MiB
This commit is contained in:
parent
34ead6ee9e
commit
2305c6e907
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ export default defineConfig({
|
||||||
registerType: 'autoUpdate', // Automatically updates the service worker when a new version is available
|
registerType: 'autoUpdate', // Automatically updates the service worker when a new version is available
|
||||||
workbox: {
|
workbox: {
|
||||||
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
|
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
|
||||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MiB
|
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue