<分区>
有谁知道 244 KiB 数是如何收到的?只是好奇。
<分区>
有谁知道 244 KiB 数是如何收到的?只是好奇。
最佳答案
限制实际上是 250kb - https://webpack.js.org/configuration/performance/#performance-maxentrypointsize
您可以阅读推理 here :
If we looked at tools like performancebudget.io, targeting loading in RAIL’s <3s on 3G would place our total JS budget at a far more conservative 106KB once you factor in other resources a typical page might include (like stylesheets and images). The less conservative number of 250KB is an upper bound estimate.
这只是基于尝试在低速移动设备上实现高性能的估计,但很难使用许多框架实现,因此更像是一个指南。
关于javascript - Webpack:为什么默认推荐的包最大大小是 244 KiB?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54404963/