From 8ae36c6ef584cf9c0e99732c0c5372a8e91be7bb Mon Sep 17 00:00:00 2001
From: Dan Abramov <dan.abramov@gmail.com>
Date: Mon, 8 Aug 2016 18:58:32 +0100
Subject: [PATCH] Make missing module output slimmer

Thanks to @geowarin for the tip in https://github.com/facebookincubator/create-react-app/issues/401#issuecomment-238291901
---
 scripts/start.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/start.js b/scripts/start.js
index fcd1338d3..84cf4f712 100644
--- a/scripts/start.js
+++ b/scripts/start.js
@@ -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)
     );
-- 
GitLab