Commit d9a29745 authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Tidy up some build logs (#2197)

parent c7c3a521
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 9 additions and 1 deletion
+9 -1
...@@ -65,7 +65,8 @@ function formatMessage(message, isError) { ...@@ -65,7 +65,8 @@ function formatMessage(message, isError) {
lines[1] lines[1]
.replace("Cannot resolve 'file' or 'directory' ", '') .replace("Cannot resolve 'file' or 'directory' ", '')
.replace('Cannot resolve module ', '') .replace('Cannot resolve module ', '')
.replace('Error: ', ''), .replace('Error: ', '')
.replace('[CaseSensitivePathsPlugin] ', ''),
]; ];
} }
......
...@@ -305,6 +305,13 @@ module.exports = { ...@@ -305,6 +305,13 @@ module.exports = {
// about it being stale, and the cache-busting can be skipped. // about it being stale, and the cache-busting can be skipped.
dontCacheBustUrlsMatching: /\.\w{8}\./, dontCacheBustUrlsMatching: /\.\w{8}\./,
filename: 'service-worker.js', 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, minify: true,
navigateFallback: publicUrl + '/index.html', navigateFallback: publicUrl + '/index.html',
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment