From b0d2f674c8d4092c0454a6f024a4fae51359fda7 Mon Sep 17 00:00:00 2001 From: Dmitry Molotkov Date: Fri, 20 Jul 2018 18:12:29 +0300 Subject: [PATCH] exit code 1 in case of failed builds (#3535) Fixes https://github.com/nuxt/nuxt.js/issues/3534 --- lib/builder/builder.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index a0f99ccfa5..fcbb77d776 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -525,6 +525,10 @@ export default class Builder { if (this.options.test) { err = stats.toString(this.options.build.stats) } + if (!err) { + // actual errors will be printed by webpack itself + err = 'Nuxt Build Error' + } return reject(err) }