diff --git a/lib/app/App.js b/lib/app/App.js index 5aba807b6c..e409ce13fa 100644 --- a/lib/app/App.js +++ b/lib/app/App.js @@ -17,7 +17,7 @@ const layouts = { <%= Object.keys(layouts).map(key => `"_${key}": _${hash(key)}` <% if (splitChunks.layouts) { %>let resolvedLayouts = {}<% } %> export default { - head: <%= serialize(head).replace('head(', 'function(').replace('titleTemplate(', 'function(') %>, + head: <%= serialize(head).replace(/:\w+\(/gm, ':function(') %>, render(h, props) { <% if (loading) { %>const loadingEl = h('nuxt-loading', { ref: 'loading' })<% } %> const layoutEl = h(this.layout || 'nuxt') @@ -121,4 +121,3 @@ export default { <%= (loading ? 'NuxtLoading' : '') %> } } -