fix: add critical css

This commit is contained in:
Pooya Parsa 2020-11-03 23:25:37 +01:00
parent ae0fd1b108
commit 1a6a4cb248

View File

@ -35,7 +35,7 @@ export async function render (url, ctx: any) {
HTML_ATTRS: '', HTML_ATTRS: '',
HEAD_ATTRS: '', HEAD_ATTRS: '',
BODY_ATTRS: '', BODY_ATTRS: '',
HEAD: rendered.renderResourceHints() + rendered.renderStyles(), HEAD: rendered.renderResourceHints() + rendered.renderStyles() + (ssrContext.styles || ''),
APP: _html + state + rendered.renderScripts() APP: _html + state + rendered.renderScripts()
}) })