Prerender & client render of intro

This commit is contained in:
Jake Archibald
2020-09-24 15:19:57 +01:00
parent 486957443d
commit 778aa41f0d
39 changed files with 738 additions and 30 deletions

View File

@@ -76,7 +76,7 @@ export default function (resolveFileUrl) {
}),
postCSSUrl({
url: ({ relativePath, url }) => {
if (/^https?:\/\//.test(url)) return url;
if (/^(https?|data):/.test(url)) return url;
const parsedPath = parsePath(relativePath);
const source = readFileSync(
resolvePath(dirname(path), relativePath),