Skip to content

Commit

Permalink
fix: don't display BootstrapVue warning messages when in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmllr95 committed Sep 11, 2020
1 parent 4219dcc commit bf8966f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.