mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
Handle error
This commit is contained in:
parent
79a09aa4fa
commit
5521925668
@ -299,6 +299,7 @@ export default class Builder extends Tapable {
|
|||||||
} else {
|
} else {
|
||||||
// --- Production build ---
|
// --- Production build ---
|
||||||
compiler.run((err, stats) => {
|
compiler.run((err, stats) => {
|
||||||
|
if (err) return console.error(err) // eslint-disable-line no-console
|
||||||
// Show build stats for production
|
// Show build stats for production
|
||||||
console.log(stats.toString(this.webpackStats)) // eslint-disable-line no-console
|
console.log(stats.toString(this.webpackStats)) // eslint-disable-line no-console
|
||||||
if (stats.hasErrors()) {
|
if (stats.hasErrors()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user