From 5521925668a7a78c9d060aacf927ba2256d9bbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 18 Jun 2017 17:41:49 +0200 Subject: [PATCH] Handle error --- lib/builder/builder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index 50ced73699..a86fd46568 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -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()) {