From b916de918244be4ef0c418df3564404e0d1e5c24 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sat, 12 Jul 2025 22:48:12 +0800 Subject: [PATCH 1/3] fix: conflicting entries in cache list --- src/utils/defaults.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/defaults.js b/src/utils/defaults.js index 787c440b..b793951d 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -316,7 +316,6 @@ module.exports = { /* Progressive Web App settings, used by Vue Config */ pwa: { name: 'Dashy', - manifestPath: './manifest.json', themeColor: '#00af87', msTileColor: '#0b1021', mode: 'production', From c0820d7fc692e19f0eb7c8373bc90423f2f4a894 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sun, 13 Jul 2025 00:28:50 +0800 Subject: [PATCH 2/3] fix: exclude dotfiles (.gitignore, .nojekyll) from PWA precache manifest https://cli.vuejs.org/core-plugins/pwa.html#configuration https://developer.chrome.com/docs/workbox/modules/workbox-build?hl=zh-cn#type-GlobPartial --- src/utils/defaults.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/defaults.js b/src/utils/defaults.js index b793951d..0089fd27 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -327,5 +327,10 @@ module.exports = { maskIcon: './web-icons/dashy-logo.png', msTileImage: './web-icons/dashy-logo.png', }, + workboxOptions: { + globIgnores: [ + '**/.*', // Ignore dotfiles + ], + }, }, }; From 14fb8cd5e73c2123e47d1b147b8b5b46e0861edf Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sun, 13 Jul 2025 15:41:37 +0000 Subject: [PATCH 3/3] fix: update workboxOptions to exclude specific file patterns --- src/utils/defaults.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/defaults.js b/src/utils/defaults.js index 0089fd27..e952310d 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -328,8 +328,12 @@ module.exports = { msTileImage: './web-icons/dashy-logo.png', }, workboxOptions: { - globIgnores: [ - '**/.*', // Ignore dotfiles + exclude: [ + // https://developer.chrome.com/docs/workbox/modules/workbox-build#properties_14 + /\.map$/, + /^manifest.*\.js$/, // default value + /\.nojekyll$/, + /\.gitignore$/, ], }, },