From fa469fd2750ac74417238de7547cd8e7cd939cb0 Mon Sep 17 00:00:00 2001 From: Domantas Date: Thu, 8 Apr 2021 12:10:43 +0300 Subject: [PATCH] fix: build fails without css chunks (#209) (#239) Co-authored-by: Kia King Ishii --- 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..ab4d60f7 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))}