Remove ssr only check

This commit is contained in:
Sébastien Chopin 2017-08-19 15:31:26 +02:00
parent a289a55a72
commit e7b7f15166

View File

@ -118,10 +118,6 @@ export default class Renderer extends Tapable {
return this.options.render.ssr === false
}
get onlySSR () {
return this.options.render.ssr === 'only'
}
get isReady () {
if (this.noSSR) {
return Boolean(this.resources.spaTemplate)
@ -480,14 +476,12 @@ export default class Renderer extends Tapable {
let resourceHints = ''
if (!this.onlySSR) {
if (this.options.render.resourceHints) {
resourceHints = context.renderResourceHints()
HEAD += resourceHints
}
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })};</script>`
APP += context.renderScripts()
if (this.options.render.resourceHints) {
resourceHints = context.renderResourceHints()
HEAD += resourceHints
}
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })};</script>`
APP += context.renderScripts()
HEAD += context.renderStyles()