Skip to content

Commit 49a1938

Browse files
authored
Tidy up some build logs (facebook#2197)
1 parent 1cc7d63 commit 49a1938

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config/webpack.config.prod.js

+7
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,13 @@ module.exports = {
305305
// about it being stale, and the cache-busting can be skipped.
306306
dontCacheBustUrlsMatching: /\.\w{8}\./,
307307
filename: 'service-worker.js',
308+
logger(message) {
309+
if (message.indexOf('Total precache size is') === 0) {
310+
// This message occurs for every build and is a bit too noisy.
311+
return;
312+
}
313+
console.log(message);
314+
},
308315
minify: true,
309316
navigateFallback: publicUrl + '/index.html',
310317
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],

0 commit comments

Comments
 (0)