fix(builder): css hash incorrectly transforming data urls (#2921)
Fixes https://github.com/denoland/fresh/issues/2599
This commit is contained in:
@@ -220,7 +220,7 @@ export class FreshFileTransformer {
|
||||
}
|
||||
}
|
||||
|
||||
const CSS_URL_REGEX = /url\((["'][^'"]+["']|[^)]+)\)/g;
|
||||
const CSS_URL_REGEX = /url\(("[^"]+"|'[^']+'|[^)]+)\)/g;
|
||||
|
||||
export function cssAssetHash(transformer: FreshFileTransformer) {
|
||||
transformer.onTransform({
|
||||
|
||||
Reference in New Issue
Block a user