From d60e3bc18b95df51dac61b6d440b673d423fa094 Mon Sep 17 00:00:00 2001 From: domnantas Date: Thu, 11 Feb 2021 23:21:21 +0200 Subject: [PATCH] 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 6b98c7a9..e2283ee2 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))}