Skip to content

Commit

Permalink
Optimize webpack rebuild speed (facebook#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Sep 22, 2018
1 parent 56df35b commit 4b0c99f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ function build(previousFileSizes) {
if (err) {
return reject(err);
}
const messages = formatWebpackMessages(stats.toJson({}, true));
const messages = formatWebpackMessages(
stats.toJson({ all: false, warnings: true, errors: true })
);
if (messages.errors.length) {
// Only keep the first error. Others are often indicative
// of the same problem, but confuse the reader with noise.
Expand Down

0 comments on commit 4b0c99f

Please sign in to comment.