Handle error

This commit is contained in:
Sébastien Chopin 2017-06-18 17:41:49 +02:00
parent 79a09aa4fa
commit 5521925668

View File

@ -299,6 +299,7 @@ export default class Builder extends Tapable {
} else {
// --- Production build ---
compiler.run((err, stats) => {
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
if (stats.hasErrors()) {