Skip to content

Commit

Permalink
precache only html files in public/
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Sep 19, 2017
1 parent 60145f9 commit f2b3fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ module.exports = {
navigateFallbackWhitelist: [/^(?!\/__).*/],
// Don't precache sourcemaps (they're large) and build asset manifest:
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
// Precache files in public/, and allow them to be accessed directly
staticFileGlobs: [paths.appPublic + '/**/*'],
// Precache likely navigation targets in public/
staticFileGlobs: [paths.appPublic + '/**/*.html'],
mergeStaticsConfig: true,
stripPrefix: paths.appPublic,
}),
Expand Down

0 comments on commit f2b3fa3

Please sign in to comment.