Skip to content

Commit 8ae36c6

Browse files
committed
Make missing module output slimmer
Thanks to @geowarin for the tip in facebook#401 (comment)
1 parent 505ddbe commit 8ae36c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/start.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ function setupCompiler(port) {
108108
// We have switched off the default Webpack output in WebpackDevServer
109109
// options so we are going to "massage" the warnings and errors and present
110110
// them in a readable focused way.
111-
var json = stats.toJson();
111+
// We use stats.toJson({}, true) to make output more compact and readable:
112+
// https://github.com/facebookincubator/create-react-app/issues/401#issuecomment-238291901
113+
var json = stats.toJson({}, true);
112114
var formattedErrors = json.errors.map(message =>
113115
'Error in ' + formatMessage(message)
114116
);

0 commit comments

Comments
 (0)