feat: enable silent config when not in debug mode (#3564)

This commit is contained in:
Alexander Lichter 2018-07-23 09:59:41 +02:00 committed by Clark Du
parent 87f1f312be
commit e814b34508

View File

@ -28,6 +28,8 @@ let router
// Try to rehydrate SSR data from window // Try to rehydrate SSR data from window
const NUXT = window.__NUXT__ || {} const NUXT = window.__NUXT__ || {}
Vue.config.silent = <%= !debug %>
<% if (debug || mode === 'spa') { %> <% if (debug || mode === 'spa') { %>
// Setup global Vue error handler // Setup global Vue error handler
const defaultErrorHandler = Vue.config.errorHandler const defaultErrorHandler = Vue.config.errorHandler