From c5abb4cc81c394c395b8488ac78737f5134fe14e Mon Sep 17 00:00:00 2001 From: bludnic Date: Sat, 28 Sep 2024 13:39:06 +0100 Subject: [PATCH] chore(ServiceWorker): remove hash from MDI font files --- vite-base.config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vite-base.config.ts b/vite-base.config.ts index ab2167217..84e999cbe 100644 --- a/vite-base.config.ts +++ b/vite-base.config.ts @@ -69,7 +69,16 @@ export default defineConfig({ include: [] }, rollupOptions: { - external: [...excludeBip39Wordlists()] + external: [...excludeBip39Wordlists()], + output: { + assetFileNames: (assetInfo) => { + if (assetInfo.name.startsWith('materialdesignicons-webfont')) { + return 'assets/[name][extname]' + } + + return 'assets/[name]-[hash][extname]' + } + } } } })