File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,12 @@ module.exports = {
319
319
console . log ( message ) ;
320
320
} ,
321
321
minify : true ,
322
+ // For unknown URLs, fallback to the index page
322
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:
323
328
staticFileGlobsIgnorePatterns : [ / \. m a p $ / , / a s s e t - m a n i f e s t \. j s o n $ / ] ,
324
329
// Work around Windows path issue in SWPrecacheWebpackPlugin:
325
330
// https://github.com/facebookincubator/create-react-app/issues/2235
You can’t perform that action at this time.
0 commit comments