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
|
||||
}
|
||||
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user