mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
Remove ssr only check
This commit is contained in:
parent
a289a55a72
commit
e7b7f15166
@ -118,10 +118,6 @@ export default class Renderer extends Tapable {
|
|||||||
return this.options.render.ssr === false
|
return this.options.render.ssr === false
|
||||||
}
|
}
|
||||||
|
|
||||||
get onlySSR () {
|
|
||||||
return this.options.render.ssr === 'only'
|
|
||||||
}
|
|
||||||
|
|
||||||
get isReady () {
|
get isReady () {
|
||||||
if (this.noSSR) {
|
if (this.noSSR) {
|
||||||
return Boolean(this.resources.spaTemplate)
|
return Boolean(this.resources.spaTemplate)
|
||||||
@ -480,14 +476,12 @@ export default class Renderer extends Tapable {
|
|||||||
|
|
||||||
let resourceHints = ''
|
let resourceHints = ''
|
||||||
|
|
||||||
if (!this.onlySSR) {
|
if (this.options.render.resourceHints) {
|
||||||
if (this.options.render.resourceHints) {
|
resourceHints = context.renderResourceHints()
|
||||||
resourceHints = context.renderResourceHints()
|
HEAD += resourceHints
|
||||||
HEAD += resourceHints
|
|
||||||
}
|
|
||||||
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })};</script>`
|
|
||||||
APP += context.renderScripts()
|
|
||||||
}
|
}
|
||||||
|
APP += `<script type="text/javascript">window.__NUXT__=${serialize(context.nuxt, { isJSON: true })};</script>`
|
||||||
|
APP += context.renderScripts()
|
||||||
|
|
||||||
HEAD += context.renderStyles()
|
HEAD += context.renderStyles()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user