From 9dbe84f58c28fbafb704b717f53679799cbd32c9 Mon Sep 17 00:00:00 2001 From: Etan Zapinsky Date: Thu, 29 Nov 2018 16:32:08 -0500 Subject: [PATCH] Disable navigationFallback and navigationFallbackWhitelist in prod webpack config by default. See https://github.com/facebook/create-react-app/pull/3419 --- config/webpack.config.prod.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 0d6dd8e38..e6cd013d8 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -368,13 +368,12 @@ module.exports = { console.log(message); }, minify: true, - // For unknown URLs, fallback to the index page - navigateFallback: publicUrl + '/index.html', - // Ignores URLs starting from /__ (useful for Firebase): - // https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219 - navigateFallbackWhitelist: [/^(?!\/__).*/], // Don't precache sourcemaps (they're large) and build asset manifest: staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/], + // `navigateFallback` and `navigateFallbackWhitelist` are disabled by default; see + // https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#service-worker-considerations + // navigateFallback: publicUrl + '/index.html', + // navigateFallbackWhitelist: [/^(?!\/__).*/], }), // Moment.js is an extremely popular library that bundles large locale files // by default due to how Webpack interprets its code. This is a practical pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy