diff --git a/packages/webpack/src/webpack.ts b/packages/webpack/src/webpack.ts index 9b065af6ea..c2eaf9f8e5 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 }