Skip to content

Commit 4b0c99f

Browse files
authored
Optimize webpack rebuild speed (facebook#5065)
Derived from facebook#4492 (comment)
1 parent 56df35b commit 4b0c99f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ function build(previousFileSizes) {
142142
if (err) {
143143
return reject(err);
144144
}
145-
const messages = formatWebpackMessages(stats.toJson({}, true));
145+
const messages = formatWebpackMessages(
146+
stats.toJson({ all: false, warnings: true, errors: true })
147+
);
146148
if (messages.errors.length) {
147149
// Only keep the first error. Others are often indicative
148150
// of the same problem, but confuse the reader with noise.

0 commit comments

Comments
 (0)