Skip to content

Instantly share code, notes, and snippets.

@isuke
Created October 13, 2017 10:07
Show Gist options
  • Save isuke/16b47b31e6924f4755f7d7a8ec2ba6f9 to your computer and use it in GitHub Desktop.
Save isuke/16b47b31e6924f4755f7d7a8ec2ba6f9 to your computer and use it in GitHub Desktop.
vue.js settings
//
// Settings
//
Vue.config.debug = process.env.NODE_ENV == 'development';
Vue.config.devtools = process.env.NODE_ENV == 'development';
Vue.config.productionTip = process.env.NODE_ENV == 'development';
Vue.config.silent = process.env.NODE_ENV != 'development';
plugins = [
new assetsPlugin
new webpack.DefinePlugin
'process.env':
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment