Skip to content

Commit

Permalink
fix: production builds should fail when lint errors are reported
Browse files Browse the repository at this point in the history
  • Loading branch information
Ze Bateira committed Jan 7, 2020
1 parent f271ded commit 80df911
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@ module.exports = {
test: /\.md$/,
use: 'raw-loader'
})
},
chainWebpack: config => {
config.module.rule('eslint').use('eslint-loader')
.tap(opts => ({
...opts,
failOnError: process.env.NODE_ENV === 'production'
}))
}
}

0 comments on commit 80df911

Please sign in to comment.