Skip to content

Commit 8ae36c6

Browse files
committed
Make missing module output slimmer
Thanks to @geowarin for the tip in facebook/create-react-app#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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy