forked from external-repos/squoosh
Don't bundle CSS urls starting #
This commit is contained in:
@@ -90,7 +90,7 @@ export default function (resolveFileUrl) {
|
||||
}),
|
||||
postCSSUrl({
|
||||
url: ({ relativePath, url }) => {
|
||||
if (/^(https?|data):/.test(url)) return url;
|
||||
if (/^((https?|data):|#)/.test(url)) return url;
|
||||
const parsedPath = parsePath(relativePath);
|
||||
const source = readFileSync(
|
||||
resolvePath(dirname(path), relativePath),
|
||||
|
||||
Reference in New Issue
Block a user