From c0820d7fc692e19f0eb7c8373bc90423f2f4a894 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sun, 13 Jul 2025 00:28:50 +0800 Subject: [PATCH] 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 + ], + }, }, };