diff --git a/lib/builder/builder.js b/lib/builder/builder.js index ed09d87f27..cf1de02253 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -486,9 +486,9 @@ export default class Builder extends Tapable { compiler.run((err, stats) => { /* istanbul ignore if */ if (err) { + console.error(err) // eslint-disable-line no-console return reject(err) } - if (err) return console.error(err) // eslint-disable-line no-console // Show build stats for production console.log(stats.toString(this.webpackStats)) // eslint-disable-line no-console