From e814b34508ca6c0f9c5cbeaec71baaf64ffd4657 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Mon, 23 Jul 2018 09:59:41 +0200 Subject: [PATCH] feat: enable silent config when not in debug mode (#3564) --- lib/app/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/app/client.js b/lib/app/client.js index 7587924a49..3f1462903e 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -28,6 +28,8 @@ let router // Try to rehydrate SSR data from window const NUXT = window.__NUXT__ || {} +Vue.config.silent = <%= !debug %> + <% if (debug || mode === 'spa') { %> // Setup global Vue error handler const defaultErrorHandler = Vue.config.errorHandler