From 1a6a4cb248db50b388883f94255799283b997c82 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 3 Nov 2020 23:25:37 +0100 Subject: [PATCH] fix: add critical css --- packages/nitro/src/runtime/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nitro/src/runtime/server.ts b/packages/nitro/src/runtime/server.ts index ddc15dbfe5..af2bc1e51c 100644 --- a/packages/nitro/src/runtime/server.ts +++ b/packages/nitro/src/runtime/server.ts @@ -35,7 +35,7 @@ export async function render (url, ctx: any) { HTML_ATTRS: '', HEAD_ATTRS: '', BODY_ATTRS: '', - HEAD: rendered.renderResourceHints() + rendered.renderStyles(), + HEAD: rendered.renderResourceHints() + rendered.renderStyles() + (ssrContext.styles || ''), APP: _html + state + rendered.renderScripts() })