Skip to content

Commit

Permalink
feat: allow disabling serve progress via devServer.progress
Browse files Browse the repository at this point in the history
close #1284
  • Loading branch information
yyx990803 committed May 14, 2018
1 parent 8fbbd35 commit da38747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-service/lib/config/dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = api => {
module.exports = (api, options) => {
api.chainWebpack(webpackConfig => {
if (process.env.NODE_ENV === 'development') {
webpackConfig
Expand All @@ -21,7 +21,7 @@ module.exports = api => {
.plugin('no-emit-on-errors')
.use(require('webpack/lib/NoEmitOnErrorsPlugin'))

if (!process.env.VUE_CLI_TEST) {
if (!process.env.VUE_CLI_TEST && options.devServer.progress !== false) {
webpackConfig
.plugin('progress')
.use(require('webpack/lib/ProgressPlugin'))
Expand Down

0 comments on commit da38747

Please sign in to comment.