Skip to content

Commit

Permalink
fix: vite v6 css filename hash
Browse files Browse the repository at this point in the history
  • Loading branch information
matenagy committed Dec 5, 2024
1 parent 7deb869 commit 36089b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/webfont-download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class WebfontDownload {
`cache hit: ${colors.bold(this.toPercent(this.fileCache.hits.css, allWebfontUrls.size))}` :
'cache disabled'
) +
')'),
')'),
false
);
}
Expand Down Expand Up @@ -254,7 +254,7 @@ export class WebfontDownload {
`cache hit: ${colors.bold(this.toPercent(this.fileCache.hits.font, this.fonts.size))}` :
'cache disabled'
) +
')'),
')'),
false
);
}
Expand Down Expand Up @@ -293,6 +293,7 @@ export class WebfontDownload {
saveFile(fileName: string, source: string | Buffer): string {
const ref = this.emitFile({
name: fileName,
...fileName.includes('.css') && { fileName: `${this.assetsDir}/${fileName}` },
type: 'asset',
source: source,
});
Expand Down

0 comments on commit 36089b4

Please sign in to comment.