Tidy up some build logs (#2197)

This commit is contained in:
Dan Abramov
2017-05-17 20:10:17 +01:00
committed by GitHub
parent c7c3a521e2
commit d9a2974574
2 changed files with 9 additions and 1 deletions

View File

@@ -65,7 +65,8 @@ function formatMessage(message, isError) {
lines[1]
.replace("Cannot resolve 'file' or 'directory' ", '')
.replace('Cannot resolve module ', '')
.replace('Error: ', ''),
.replace('Error: ', '')
.replace('[CaseSensitivePathsPlugin] ', ''),
];
}

View File

@@ -305,6 +305,13 @@ module.exports = {
// about it being stale, and the cache-busting can be skipped.
dontCacheBustUrlsMatching: /\.\w{8}\./,
filename: 'service-worker.js',
logger(message) {
if (message.indexOf('Total precache size is') === 0) {
// This message occurs for every build and is a bit too noisy.
return;
}
console.log(message);
},
minify: true,
navigateFallback: publicUrl + '/index.html',
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],