From 992f18afab4e891a245bf2ad5c8492ac798adba1 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 23 Mar 2018 13:03:04 +0430 Subject: [PATCH] misc: better build error handling --- lib/builder/webpack/base.mjs | 2 +- lib/common/nuxt.config.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/builder/webpack/base.mjs b/lib/builder/webpack/base.mjs index c115f49ac0..52cc915e9c 100644 --- a/lib/builder/webpack/base.mjs +++ b/lib/builder/webpack/base.mjs @@ -216,7 +216,7 @@ export default class WebpackBaseConfig { } // Add friendly error plugin - if (!this.options.dev && !this.options.test) { + if (this.options.dev) { plugins.push( new FriendlyErrorsWebpackPlugin({ clearConsole: true, diff --git a/lib/common/nuxt.config.js b/lib/common/nuxt.config.js index a84263bad3..0aea0ea0ee 100644 --- a/lib/common/nuxt.config.js +++ b/lib/common/nuxt.config.js @@ -83,9 +83,8 @@ export default { children: false, modules: false, colors: true, - // Warning and Erros will be handled by friendly-errors-plugin - warnings: false, - errors: false, + warnings: true, + errors: true, excludeAssets: [ /.map$/, /index\..+\.html$/,