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 = {
319319        console . log ( message ) ; 
320320      } , 
321321      minify : true , 
322+       // For unknown URLs, fallback to the index page 
322323      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: 
323328      staticFileGlobsIgnorePatterns : [ / \. m a p $ / ,  / a s s e t - m a n i f e s t \. j s o n $ / ] , 
324329      // Work around Windows path issue in SWPrecacheWebpackPlugin: 
325330      // https://github.com/facebookincubator/create-react-app/issues/2235 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments