From bab770b5331c44706dcb0f28a74c933d1cd85033 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 21 Oct 2022 11:37:16 +0100 Subject: [PATCH] fix(webpack): print build errors --- packages/webpack/src/webpack.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/webpack/src/webpack.ts b/packages/webpack/src/webpack.ts index 9b065af6ea4..c2eaf9f8e51 100644 --- a/packages/webpack/src/webpack.ts +++ b/packages/webpack/src/webpack.ts @@ -156,11 +156,8 @@ async function compile (compiler: Compiler) { const stats = await new Promise((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 }