diff --git a/packages/vant-cli/src/config/webpack.site.prd.ts b/packages/vant-cli/src/config/webpack.site.prd.ts index 93ddca3de..b3039f646 100644 --- a/packages/vant-cli/src/config/webpack.site.prd.ts +++ b/packages/vant-cli/src/config/webpack.site.prd.ts @@ -14,6 +14,10 @@ export function getSitePrdConfig() { { mode: 'production', stats: 'none', + performance: { + maxAssetSize: 5 * 1024 * 1024, + maxEntrypointSize: 5 * 1024 * 1024, + }, output: { publicPath, path: outputDir,