Skip to content

Commit

Permalink
chore(app): ignore console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yarl committed Oct 21, 2017
1 parent 095e144 commit 7cd5608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'optionalDependencies': ['test/unit/index.js']
}],
// allow debugger during development
'no-console': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
}
1 change: 1 addition & 0 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const webpackConfig = merge(baseWebpackConfig, {
// UglifyJs do not support ES6+, you can also use babel-minify for better treeshaking: https://github.com/babel/minify
new webpack.optimize.UglifyJsPlugin({
compress: {
drop_console: true,
warnings: false
},
sourceMap: true
Expand Down

0 comments on commit 7cd5608

Please sign in to comment.