Don't bundle CSS urls starting #

This commit is contained in:
Jake Archibald
2020-12-07 19:17:32 +00:00
parent b019687907
commit 154c1ed5fb

View File

@@ -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),