We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
paths
1 parent 78cf568 commit 60145f9Copy full SHA for 60145f9
packages/react-scripts/config/webpack.config.prod.js
@@ -344,9 +344,9 @@ module.exports = {
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/**/*'],
+ staticFileGlobs: [paths.appPublic + '/**/*'],
348
mergeStaticsConfig: true,
349
- stripPrefix: './public',
+ stripPrefix: paths.appPublic,
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