diff --git a/config/webpack.config.js b/config/webpack.config.js index 71d96c9a..a39ba48a 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -716,11 +716,12 @@ module.exports = function (webpackEnv) { new WorkboxWebpackPlugin.InjectManifest({ swSrc, dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./, - exclude: [/\.map$/, /asset-manifest\.json$/, /LICENSE/], + // REVISIT: main entry point should be chunked instead of ignored + exclude: [/\.map$/, /asset-manifest\.json$/, /LICENSE/, /static\/js\/main\.\w+\.js$/], // Bump up the default maximum size (2mb) that's precached, // to make lazy-loading failure scenarios less likely. // See https://github.com/cra-template/pwa/issues/13#issuecomment-722667270 - maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, + maximumFileSizeToCacheInBytes: 2 * 1024 * 1024, }), // TypeScript type checking useTypeScript &&