Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(webpack): print build errors (#8388)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 24, 2022
1 parent 7b20e13 commit e7e7568
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/webpack/src/webpack.ts
Expand Up @@ -156,11 +156,8 @@ async function compile (compiler: Compiler) {
const stats = await new Promise<webpack.Stats>((resolve, reject) => compiler.run((err, stats) => err ? reject(err) : resolve(stats!)))

if (stats.hasErrors()) {
// non-quiet mode: errors will be printed by webpack itself
const error = new Error('Nuxt build error')
if (nuxt.options.build.quiet === true) {
error.stack = stats.toString('errors-only')
}
error.stack = stats.toString('errors-only')
throw error
}

Expand Down

0 comments on commit e7e7568

Please sign in to comment.