Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit 8f2b90e

Browse files
Glavin001geowarin
authored andcommitted
Fix clearConsole option not working when set to false (#10)
1 parent be203ab commit 8f2b90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/friendly-errors-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class FriendlyErrorsWebpackPlugin {
2828
options = options || {};
2929
this.compilationSuccessInfo = options.compilationSuccessInfo || {};
3030
this.onErrors = options.onErrors;
31-
this.shouldClearConsole = options.clearConsole || true;
31+
this.shouldClearConsole = Boolean(options.clearConsole);
3232
this.formatters = concat(defaultFormatters, options.additionalFormatters);
3333
this.transformers = concat(defaultTransformers, options.additionalTransformers);
3434
}

0 commit comments

Comments
 (0)