fix: enable FriendlyErrorsPlugin when build.friendlyErrors is true

This commit is contained in:
Clark Du 2019-01-04 16:09:10 +00:00
parent 6178c470ba
commit 30fef5d7a0

View File

@ -176,7 +176,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
} }
// Add friendly error plugin // 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( config.plugins.push(
new FriendlyErrorsWebpackPlugin({ new FriendlyErrorsWebpackPlugin({
clearConsole: false, clearConsole: false,