refactor: enable renderStyles before vue-ssr supports async css loading

This commit is contained in:
Clark Du 2018-03-21 21:52:53 +08:00
parent 8beb1b3525
commit 913d544e74
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -376,9 +376,7 @@ export default class Renderer {
APP += m.script.text({ body: true })
APP += m.noscript.text({ body: true })
if (!this.options.build.extractCSS) {
HEAD += context.renderStyles()
}
let html = this.resources.ssrTemplate({
HTML_ATTRS: 'data-n-head-ssr ' + m.htmlAttrs.text(),