Skip to content

Commit c7849e2

Browse files
committed
Make missing module output slimmer
Thanks to @geowarin for the tip in #401 (comment)
1 parent 12b0972 commit c7849e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/start.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ function setupCompiler(port) {
105105
// We have switched off the default Webpack output in WebpackDevServer
106106
// options so we are going to "massage" the warnings and errors and present
107107
// them in a readable focused way.
108-
var json = stats.toJson();
108+
// We use stats.toJson({}, true) to make output more compact and readable:
109+
// https://github.com/facebookincubator/create-react-app/issues/401#issuecomment-238291901
110+
var json = stats.toJson({}, true);
109111
var formattedErrors = json.errors.map(message =>
110112
'Error in ' + formatMessage(message)
111113
);

0 commit comments

Comments
 (0)