The bundle size is significantly larger than recommended.
The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb
webpack performance 的配置,
单个文件过大的时候,给开发者一个提示信息
https://webpack.js.org/configuration/performance/#performancemaxentrypointsize
https://stackoverflow.com/questions/57542777/reducing-bundle-size-of-a-production-application
- 通过 chainWebpack 设置 maxEntrypointSize 到一个够大的值
- 设置 hints 为false
- umi 的配置项,设置动态引入、external 、调整 splitChunks 策略