continue preparations for .module.css (vercel/turbo#494)

split global css and module css into separate assets
This commit is contained in:
Tobias Koppers 2022-10-11 11:47:43 +02:00 committed by GitHub
parent 5e1922d397
commit fb1629c542
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ export function Head({ children, ...props }) {
<head {...props}>
{children}
{styles.map((url) => (
<link key={url} href={url} type="text/css" />
<link key={url} href={url} rel="stylesheet" />
))}
{scripts.map((url) => (
<link key={url} type="preload" href={url} as="script" />

View file

@ -150,11 +150,11 @@ impl ContentSource for NodeRenderContentSource {
method: data
.method
.clone()
.ok_or_else(|| anyhow!("method need to be provided"))?,
.ok_or_else(|| anyhow!("method needs to be provided"))?,
url: data
.url
.clone()
.ok_or_else(|| anyhow!("url need to be provided"))?,
.ok_or_else(|| anyhow!("url needs to be provided"))?,
query: data.query.clone(),
headers: data.headers.clone(),
}