Skip to content

Commit

Permalink
chore: suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 25, 2020
1 parent f64a2aa commit 46d0344
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 @@ -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) {
Expand Down

0 comments on commit 46d0344

Please sign in to comment.