From b031fac121eaa5d3cf555d7d02df297318156ba8 Mon Sep 17 00:00:00 2001 From: Pim Date: Fri, 18 Oct 2019 11:36:49 +0200 Subject: [PATCH] fix: collapsed ssr log (#6590) --- packages/vue-app/template/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-app/template/client.js b/packages/vue-app/template/client.js index a0fb5b37b2..0c2a44b753 100644 --- a/packages/vue-app/template/client.js +++ b/packages/vue-app/template/client.js @@ -40,7 +40,7 @@ Object.assign(Vue.config, <%= serialize(vue.config) %>)<%= isTest ? '// eslint-d const logs = NUXT.logs || [] if (logs.length > 0) { const ssrLogSyle = 'background: #2E495E;border-radius: 0.5em;color: white;font-weight: bold;padding: 2px 0.5em;' - console.group && console.group <%= nuxtOptions.render.ssrLog === 'collapsed' ? 'Collapsed' : '' %> ("%cNuxt SSR", ssrLogSyle) + console.group && console.group<%= nuxtOptions.render.ssrLog === 'collapsed' ? 'Collapsed' : '' %> ("%cNuxt SSR", ssrLogSyle) logs.forEach(logObj => (console[logObj.type] || console.log)(...logObj.args)) delete NUXT.logs console.groupEnd && console.groupEnd()