Skip to content

Commit 60145f9

Browse files
author
chee
committed
use appPublic from paths for staticFileGlobs
1 parent 78cf568 commit 60145f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.prod.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ module.exports = {
344344
// Don't precache sourcemaps (they're large) and build asset manifest:
345345
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
346346
// Precache files in public/, and allow them to be accessed directly
347-
staticFileGlobs: ['./public/**/*'],
347+
staticFileGlobs: [paths.appPublic + '/**/*'],
348348
mergeStaticsConfig: true,
349-
stripPrefix: './public',
349+
stripPrefix: paths.appPublic,
350350
}),
351351
// Moment.js is an extremely popular library that bundles large locale files
352352
// by default due to how Webpack interprets its code. This is a practical

0 commit comments

Comments
 (0)