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}> <head {...props}>
{children} {children}
{styles.map((url) => ( {styles.map((url) => (
<link key={url} href={url} type="text/css" /> <link key={url} href={url} rel="stylesheet" />
))} ))}
{scripts.map((url) => ( {scripts.map((url) => (
<link key={url} type="preload" href={url} as="script" /> <link key={url} type="preload" href={url} as="script" />

View file

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