Skip to content

Commit

Permalink
chore(ServiceWorker): remove hash from MDI font files
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Sep 28, 2024
1 parent f9c3e84 commit c5abb4c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion vite-base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
}
}
}
}
})

1 comment on commit c5abb4c

@bludnic
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.