Skip to content

Commit

Permalink
chore: suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 26, 2020
1 parent fe4a7ec commit 021556e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/utils/Compiler.js
Expand Up @@ -60,7 +60,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) {
Expand Down

0 comments on commit 021556e

Please sign in to comment.