The bundle size is significantly larger than recommended.
这个怎么解决呀
The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://umijs.org/docs/load-on-demand
You can also analyze the project dependencies using ANALYZE=1
有提示的原因是 webpack performance 的配置,单个文件过大的时候,给开发者一个提示信息。可以了解下:https://webpack.js.org/config...
要想去除有两种方式:
一是 通过 chainWebpack 设置
maxEntrypointSize
到一个够大的值,或者设置hints
为false;而是借助 umi 的配置项,设置 动态引入、external 、调整 splitChunks 策略等。参考:https://umijs.org/zh-CN/guide...