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 facebook#401 (comment)
  • Loading branch information
gaearon authored and feiqitian committed Oct 25, 2016
1 parent 2dbab0b commit 2397413
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 @@ -108,7 +108,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 2397413

Please sign in to comment.