mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Handle error
This commit is contained in:
parent
79a09aa4fa
commit
5521925668
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user