Skip to content

Commit dfa252a

Browse files
committed
fix: ensure we don't have font filenames prefixed with -
resolves #174
1 parent c6deeba commit dfa252a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/assets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export function setupPublicAssetStrategy(options: ModuleOptions['assets'] = {})
3232
if ('url' in source && hasProtocol(source.url, { acceptRelative: true })) {
3333
source.url = source.url.replace(/^\/\//, 'https://')
3434
const file = [
35-
filename(source.url.replace(/\?.*/, '')),
35+
// TODO: investigate why negative ignore pattern below is being ignored
36+
filename(source.url.replace(/\?.*/, '').replace(/^-+/, '')),
3637
hash(source) + (extname(source.url) || formatToExtension(source.format) || ''),
3738
].filter(Boolean).join('-')
3839

0 commit comments

Comments
 (0)