reactjs - 优化 Expo build:web
问题描述
我已经在 React Native 中为 iOS 和 Android 构建了一个应用程序,但我也想通过 Web 应用程序提供。这一切都很好,但网络应用程序的性能是一个问题。
文件大小构建为 2.02MB。有没有办法在不影响我的原生构建的情况下优化它?
asset size limit: The following asset(s) exceed the recommended size limit (586 KiB).
This can impact web performance.
Assets:
./fonts/MaterialCommunityIcons.ttf (665 KiB)
static/js/2.4f7a5c.chunk.js (2.02 MiB)
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (586 KiB). This can impact web performance.
Entrypoints:
app (2.11 MiB)
static/js/runtime~app.4b5a04.js
static/js/2.8f75c.chunk.js
static/js/app.59c50.chunk.js
解决方案
推荐阅读
- c# - 如何阻止 XmlSerializer 发出集合的空标记?
- tensorflow - TensorFlow 自动混合精度 fp16 比官方 resnet 上的 fp32 慢
- scope - 为什么在交互式 julia 会话中仍然失败本地/全局范围?
- excel - 如何访问工作表中的所有红色行?
- python - 在列表的循环中初始化类实例
- python - 如何使用 pycuda 进行一维 fft?
- django - 使用 CSV 上传测试 Django 表单
- authentication - 如何重定向到最后一个请求的页面,但 SavedRequestAwareAuthenticationSuccessHandler 重定向到最后一个受保护的页面?
- wpf - WPF 自定义形状交替弧段
- javascript - 按货币代码将带数字的字符串格式化为数字