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({
|
postCSSUrl({
|
||||||
url: ({ relativePath, url }) => {
|
url: ({ relativePath, url }) => {
|
||||||
if (/^(https?|data):/.test(url)) return url;
|
if (/^((https?|data):|#)/.test(url)) return url;
|
||||||
const parsedPath = parsePath(relativePath);
|
const parsedPath = parsePath(relativePath);
|
||||||
const source = readFileSync(
|
const source = readFileSync(
|
||||||
resolvePath(dirname(path), relativePath),
|
resolvePath(dirname(path), relativePath),
|
||||||
|
|||||||
Reference in New Issue
Block a user