Skip to content

Commit d9a2974

Browse files
authored
Tidy up some build logs (#2197)
1 parent c7c3a52 commit d9a2974

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/react-dev-utils/formatWebpackMessages.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ function formatMessage(message, isError) {
6565
lines[1]
6666
.replace("Cannot resolve 'file' or 'directory' ", '')
6767
.replace('Cannot resolve module ', '')
68-
.replace('Error: ', ''),
68+
.replace('Error: ', '')
69+
.replace('[CaseSensitivePathsPlugin] ', ''),
6970
];
7071
}
7172

packages/react-scripts/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)