Skip to content

Commit f2b3fa3

Browse files
author
chee
committed
precache only html files in public/
1 parent 60145f9 commit f2b3fa3

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
@@ -343,8 +343,8 @@ module.exports = {
343343
navigateFallbackWhitelist: [/^(?!\/__).*/],
344344
// Don't precache sourcemaps (they're large) and build asset manifest:
345345
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
346-
// Precache files in public/, and allow them to be accessed directly
347-
staticFileGlobs: [paths.appPublic + '/**/*'],
346+
// Precache likely navigation targets in public/
347+
staticFileGlobs: [paths.appPublic + '/**/*.html'],
348348
mergeStaticsConfig: true,
349349
stripPrefix: paths.appPublic,
350350
}),

0 commit comments

Comments
 (0)