javascript - Webpack:为什么默认推荐的包最大大小是 244 KiB?

标签 javascript webpack

<分区>

有谁知道 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/

相关文章:

css - 错误无法使用 webpack 找到模块

reactjs - Webpack 和 React 的意外 token

javascript - 当中继器内未选中复选框时禁用文本框

javascript - JQuery 中如何捕获 TextArea 文本更改事件

javascript - Jquery 自动完成

angular - 微前端/多存储库 Angular 中的 Webpack 外部模块在构建时出现错误

javascript - 如何从加载程序中排除文件

webpack - 最简单的 cytoscape.js 构建系统?

javascript - 对 XMLHttpRequest 的访问已被 CORS 策略阻止

javascript - 更改 IE 上对象的原型(prototype)