mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
exit code 1 in case of failed builds (#3535)
Fixes https://github.com/nuxt/nuxt.js/issues/3534
This commit is contained in:
parent
dfef5252de
commit
b0d2f674c8
@ -525,6 +525,10 @@ export default class Builder {
|
|||||||
if (this.options.test) {
|
if (this.options.test) {
|
||||||
err = stats.toString(this.options.build.stats)
|
err = stats.toString(this.options.build.stats)
|
||||||
}
|
}
|
||||||
|
if (!err) {
|
||||||
|
// actual errors will be printed by webpack itself
|
||||||
|
err = 'Nuxt Build Error'
|
||||||
|
}
|
||||||
|
|
||||||
return reject(err)
|
return reject(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user