fix: exclude data files from precache to prevent SW install errors

This commit is contained in:
catarrh committed 2026-08-02 01:22:35 +03:00
1 parent 3b839ac23b
commit e397591781
1 file changed
+2 -1
+2 -1
View File
@@ -9,7 +9,8 @@ export default defineConfig({
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,woff,json,png}'],
globPatterns: ['**/*.{js,css,html,woff,png}'],
globIgnores: ['**/data/**'],
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024,
runtimeCaching: [
{