We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d05ec2 commit 88bc50aCopy full SHA for 88bc50a
packages/react-scripts/config/webpack.config.prod.js
@@ -319,7 +319,12 @@ module.exports = {
319
console.log(message);
320
},
321
minify: true,
322
+ // For unknown URLs, fallback to the index page
323
navigateFallback: publicUrl + '/index.html',
324
+ // Ignores URLs starting from /__ (useful for Firebase):
325
+ // https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
326
+ navigateFallbackWhitelist: [/^(?!\/__).*/],
327
+ // Don't precache sourcemaps (they're large) and build asset manifest:
328
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
329
// Work around Windows path issue in SWPrecacheWebpackPlugin:
330
// https://github.com/facebookincubator/create-react-app/issues/2235
0 commit comments