Skip to content

Commit

Permalink
feat: ✨ don't use hash for fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
woldtwerk committed Mar 13, 2024
1 parent 5e1e1f1 commit 9294d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite-plugin-drupal/src/plugins/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export default (ctx: Context): Plugin => {
const base = basename(assetInfo.name)
let dir = dirname(assetInfo.name)

if (base.match(/.(woff2?)$/))
return '[name].[ext]'

if (assetMap.has(base))
return assetMap.get(base)

Expand Down

0 comments on commit 9294d20

Please sign in to comment.