From 30fef5d7a0cd1fb83dd722c3145da59c662fd45f Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 4 Jan 2019 16:09:10 +0000 Subject: [PATCH] fix: enable FriendlyErrorsPlugin when build.friendlyErrors is true --- packages/webpack/src/config/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/config/client.js b/packages/webpack/src/config/client.js index 1d4ab2b359..7d4cc43129 100644 --- a/packages/webpack/src/config/client.js +++ b/packages/webpack/src/config/client.js @@ -176,7 +176,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig { } // Add friendly error plugin - if (this.options.dev && !this.options.build.quiet && !this.options.build.friendlyErrors) { + if (this.options.dev && !this.options.build.quiet && this.options.build.friendlyErrors) { config.plugins.push( new FriendlyErrorsWebpackPlugin({ clearConsole: false,