-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
前端打包js文件太大(7M),造成第一次访问速度太慢(60秒以上) #1343
Comments
可能还是我没有表述清楚吧,我不是说整个dist文件夹打包是7M,我是我生成的有一个js文件是7M。可以看前面的图片。chunk-vendors.ee53c28d.js 这个文件有7M,然后gzip以后是2.5M。谢谢。 |
This comment has been minimized.
This comment has been minimized.
新方案 删除@jeecg/antd-online-beta220,换成@jeecg/antd-online-220-mini
详细参考此链接: https://www.npmjs.com/package/@jeecg/antd-online-beta220-mini |
换成@ jeecg / antd-online-220-mini bulid报错了 |
换成@ jeecg / antd-online-220-mini bulid报错 404 |
你安装依赖了? 重新补充了操作步骤,看四楼 |
npm i @jeecg/antd-online-beta220-mini执行太慢了,依赖加载不到本地 |
是这样的,就是因为富文本太大所以去掉了 |
|
我也一直装不上,有什么解决方法吗 |
用最新的版本,体积是小了,可还是慢。。也得接近1M。。。 |
1M已经最大努力了 |
是否考虑提供用url的形式引入呢,通过cdn和浏览器强缓存去做缓存,chunk-vendor做持久化缓存还挺困难的 |
版本号:
2.2.0
问题描述:
前端打包js文件太大(7M),造成第一次访问速度太慢(60秒以上)
截图&代码:
友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered: