mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-19 06:36:38 +08:00
Ignore "Skipping static resource" message from SW precache (#2645)
This commit is contained in:
@@ -77,7 +77,9 @@ module.exports = {
|
||||
publicPath: publicPath,
|
||||
// Point sourcemap entries to original disk location (format as URL on Windows)
|
||||
devtoolModuleFilenameTemplate: info =>
|
||||
path.relative(paths.appSrc, info.absoluteResourcePath).replace(/\\/g, '/'),
|
||||
path
|
||||
.relative(paths.appSrc, info.absoluteResourcePath)
|
||||
.replace(/\\/g, '/'),
|
||||
},
|
||||
resolve: {
|
||||
// This allows you to set a fallback for where Webpack should look for modules.
|
||||
@@ -320,6 +322,11 @@ module.exports = {
|
||||
// This message occurs for every build and is a bit too noisy.
|
||||
return;
|
||||
}
|
||||
if (message.indexOf('Skipping static resource') === 0) {
|
||||
// This message obscures real errors so we ignore it.
|
||||
// https://github.com/facebookincubator/create-react-app/issues/2612
|
||||
return;
|
||||
}
|
||||
console.log(message);
|
||||
},
|
||||
minify: true,
|
||||
|
||||
Reference in New Issue
Block a user