diff --git a/web/build/webpack.config.ts b/web/build/webpack.config.ts index c656e3a4..f7154ba8 100644 --- a/web/build/webpack.config.ts +++ b/web/build/webpack.config.ts @@ -165,6 +165,8 @@ const config: Configuration = { // Do not precache images exclude: [/\.(?:png|jpg|jpeg|svg)$/], + maximumFileSizeToCacheInBytes: 8 * 1024 * 1024, // 限制最大缓存 8M + // Define runtime caching rules. runtimeCaching: [ {