Skip to content

Commit 30ba746

Browse files
author
chee
committed
disable sw-precache's navigateFallback
1 parent f2b3fa3 commit 30ba746

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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

+1-10
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,8 @@ module.exports = {
336336
console.log(message);
337337
},
338338
minify: true,
339-
// For unknown URLs, fallback to the index page
340-
navigateFallback: publicUrl + '/index.html',
341-
// Ignores URLs starting from /__ (useful for Firebase):
342-
// https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
343-
navigateFallbackWhitelist: [/^(?!\/__).*/],
344-
// Don't precache sourcemaps (they're large) and build asset manifest:
339+
// Don't precache sourcemaps (they're large), or build asset manifest:
345340
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
346-
// Precache likely navigation targets in public/
347-
staticFileGlobs: [paths.appPublic + '/**/*.html'],
348-
mergeStaticsConfig: true,
349-
stripPrefix: paths.appPublic,
350341
}),
351342
// Moment.js is an extremely popular library that bundles large locale files
352343
// by default due to how Webpack interprets its code. This is a practical

0 commit comments

Comments
 (0)