Skip to content

Commit

Permalink
Make missing module output slimmer
Browse files Browse the repository at this point in the history
Thanks to @geowarin for the tip in #401 (comment)
  • Loading branch information
gaearon committed Aug 22, 2016
1 parent 12b0972 commit c7849e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ function setupCompiler(port) {
// We have switched off the default Webpack output in WebpackDevServer
// options so we are going to "massage" the warnings and errors and present
// them in a readable focused way.
var json = stats.toJson();
// We use stats.toJson({}, true) to make output more compact and readable:
// https://github.com/facebookincubator/create-react-app/issues/401#issuecomment-238291901
var json = stats.toJson({}, true);
var formattedErrors = json.errors.map(message =>
'Error in ' + formatMessage(message)
);
Expand Down

0 comments on commit c7849e2

Please sign in to comment.