Egret社区
本帖最后由 我是小小小白 于 2021-6-7 17:38 编辑

webpack黄色警告入口文件main.js太大,超过244KiB ,请问这个怎么处理啊?

Version: webpack 4.44.1
Time: 4171ms
Built at: 2021-06-07 4:53:24 PM
     Asset      Size  Chunks                    Chunk Names
index.html  7.98 KiB          [emitted]
   main.js   636 KiB    main  [emitted]  [big]  main
Entrypoint main [big] = main.js

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  main.js (636 KiB)


WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (636 KiB)
      main.js




WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

分享到 :
0 人收藏

1 个回复

倒序浏览
app小王子  社区管理员 | 2021-6-11 17:01:33
https://webpack.js.org/guides/code-splitting/  这里连接中有告诉你如何分包
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部