Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 4e3e06b

Browse files
gaearonwmonk
authored andcommittedAug 7, 2017
Ignore "Skipping static resource" message from SW precache (#2645)
1 parent a3fc196 commit 4e3e06b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎packages/react-scripts/config/webpack.config.prod.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ module.exports = {
7676
publicPath: publicPath,
7777
// Point sourcemap entries to original disk location (format as URL on Windows)
7878
devtoolModuleFilenameTemplate: info =>
79-
path.relative(paths.appSrc, info.absoluteResourcePath).replace(/\\/g, '/'),
79+
path
80+
.relative(paths.appSrc, info.absoluteResourcePath)
81+
.replace(/\\/g, '/'),
8082
},
8183
resolve: {
8284
// This allows you to set a fallback for where Webpack should look for modules.
@@ -303,6 +305,11 @@ module.exports = {
303305
// This message occurs for every build and is a bit too noisy.
304306
return;
305307
}
308+
if (message.indexOf('Skipping static resource') === 0) {
309+
// This message obscures real errors so we ignore it.
310+
// https://github.com/facebookincubator/create-react-app/issues/2612
311+
return;
312+
}
306313
console.log(message);
307314
},
308315
minify: true,

0 commit comments

Comments
 (0)
This repository has been archived.