mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
move up error print becuse it never be called
Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
parent
eae828ccc6
commit
afc756f694
@ -486,9 +486,9 @@ export default class Builder extends Tapable {
|
|||||||
compiler.run((err, stats) => {
|
compiler.run((err, stats) => {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (err) {
|
if (err) {
|
||||||
|
console.error(err) // eslint-disable-line no-console
|
||||||
return reject(err)
|
return reject(err)
|
||||||
}
|
}
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user