We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51be95 commit 78cf568Copy full SHA for 78cf568
packages/react-scripts/config/webpack.config.prod.js
@@ -343,6 +343,10 @@ module.exports = {
343
navigateFallbackWhitelist: [/^(?!\/__).*/],
344
// Don't precache sourcemaps (they're large) and build asset manifest:
345
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
346
+ // Precache files in public/, and allow them to be accessed directly
347
+ staticFileGlobs: ['./public/**/*'],
348
+ mergeStaticsConfig: true,
349
+ stripPrefix: './public',
350
}),
351
// Moment.js is an extremely popular library that bundles large locale files
352
// by default due to how Webpack interprets its code. This is a practical
0 commit comments