fix: exclude data files from precache to prevent SW install errors
This commit is contained in:
1 parent
3b839ac23b
commit
e397591781
1 file changed
+2
-1
+2
-1
@@ -9,7 +9,8 @@ export default defineConfig({
|
|||||||
VitePWA({
|
VitePWA({
|
||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
workbox: {
|
workbox: {
|
||||||
globPatterns: ['**/*.{js,css,html,woff,json,png}'],
|
globPatterns: ['**/*.{js,css,html,woff,png}'],
|
||||||
|
globIgnores: ['**/data/**'],
|
||||||
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024,
|
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024,
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user