Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 98fc60d

Browse files
gaearonmorgs32
authored andcommittedSep 1, 2017
Ignore "Skipping static resource" message from SW precache (facebook#2645)
1 parent 86c4983 commit 98fc60d

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
@@ -77,7 +77,9 @@ module.exports = {
7777
publicPath: publicPath,
7878
// Point sourcemap entries to original disk location (format as URL on Windows)
7979
devtoolModuleFilenameTemplate: info =>
80-
path.relative(paths.appSrc, info.absoluteResourcePath).replace(/\\/g, '/'),
80+
path
81+
.relative(paths.appSrc, info.absoluteResourcePath)
82+
.replace(/\\/g, '/'),
8183
},
8284
resolve: {
8385
// This allows you to set a fallback for where Webpack should look for modules.
@@ -320,6 +322,11 @@ module.exports = {
320322
// This message occurs for every build and is a bit too noisy.
321323
return;
322324
}
325+
if (message.indexOf('Skipping static resource') === 0) {
326+
// This message obscures real errors so we ignore it.
327+
// https://github.com/facebookincubator/create-react-app/issues/2612
328+
return;
329+
}
323330
console.log(message);
324331
},
325332
minify: true,

0 commit comments

Comments
 (0)
Please sign in to comment.