Skip to content
Permalink
Browse files
fix: don't display BootstrapVue warning messages when in production
  • Loading branch information
jacobmllr95 committed Sep 11, 2020
1 parent 4219dcc commit bf8966f6de725bf2828ca4609056c27dd4a96399
Showing 1 changed file with 2 additions and 1 deletion.
@@ -72,4 +72,5 @@ export const getEnv = (key, fallback = null) => {
return env[key] || fallback
}

export const getNoWarn = () => getEnv('BOOTSTRAP_VUE_NO_WARN')
export const getNoWarn = () =>
getEnv('BOOTSTRAP_VUE_NO_WARN') || getEnv('NODE_ENV') === 'production'

0 comments on commit bf8966f

Please sign in to comment.