From d60e3bc18b95df51dac61b6d440b673d423fa094 Mon Sep 17 00:00:00 2001 From: domnantas Date: Thu, 11 Feb 2021 23:21:21 +0200 Subject: [PATCH 1/2] fix: build fails without css chunks (#209) --- src/node/build/render.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/node/build/render.ts b/src/node/build/render.ts index 6b98c7a91b1f..e2283ee2f83e 100644 --- a/src/node/build/render.ts +++ b/src/node/build/render.ts @@ -53,6 +53,10 @@ export async function renderPage( }) .join('\n ') + const stylesheetLink = cssChunk + ? `` + : `` + const html = ` @@ -65,7 +69,7 @@ export async function renderPage( - + ${stylesheetLink} ${preloadLinks} ${renderHead(siteData.head)} ${renderHead(frontmatterHead && filterOutHeadDescription(frontmatterHead))} From d44155d330a3737f33b2476432cf78dc415295e9 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Thu, 8 Apr 2021 18:10:14 +0900 Subject: [PATCH 2/2] style: fix code style --- src/node/build/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/build/render.ts b/src/node/build/render.ts index e2283ee2f83e..ab4d60f74341 100644 --- a/src/node/build/render.ts +++ b/src/node/build/render.ts @@ -55,7 +55,7 @@ export async function renderPage( const stylesheetLink = cssChunk ? `` - : `` + : '' const html = `