From 46d034409d1d52dbf75f668d596cea533a38a2fd Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Fri, 25 Sep 2020 16:25:41 +0530 Subject: [PATCH] chore: suggestion --- packages/webpack-cli/lib/utils/Compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-cli/lib/utils/Compiler.js b/packages/webpack-cli/lib/utils/Compiler.js index c6d301cb426..1189cf3a2fb 100644 --- a/packages/webpack-cli/lib/utils/Compiler.js +++ b/packages/webpack-cli/lib/utils/Compiler.js @@ -59,7 +59,7 @@ class Compiler { process.exitCode = 1; } if (outputOptions.json === true) { - logger.raw(JSON.stringify(stats.toJson(outputOptions), null, 2)); + process.stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + '\n'); } else if (stats.hash !== lastHash) { lastHash = stats.hash; if (stats.compilation && stats.compilation.errors.length !== 0) {