Ag-grid束太大 [英] Ag-grid bundle size is too big

查看:160
本文介绍了Ag-grid束太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Angular 6开发Web应用程序。我有一个Ag-grid企业版。 Ag-grid文档说,我们必须导入所有 ag-grid-angular ag-grid-community ag-grid-enterprise

I am developing a web application with Angular 6. I have an Ag-grid enterprise edition. Ag-grid documentation says, that we have to import all ag-grid-angular, ag-grid-community, and ag-grid-enterprise to work with Ag-grid enterprise.

编译后,主捆绑包的总大小超过1.5 MB。因为 ag-grid-community 是694KB,而 ag-grid-enterprise 是230 KB:

After compiling, the total main bundle size crosses 1.5 MB. In that ag-grid-community is 694KB and ag-grid-enterprise is 230 KB:

这是Ag-的正常行为吗?

Is this the normal behavior of Ag-grid?

我正在使用Ag-grid版本19.0.0和以下命令进行构建:

I am using Ag-grid version 19.0.0 and the following command for building:

ng build --prod --aot --build-optimizer --vendor-chunk=true


推荐答案

这是我们所知道的,我们的积压订单中有

This is something that we know and we have in our backlog

项目结构改进AG-1329减小网格束的大小(通过摇树)

Project structure improvements AG-1329 Reduce grid bundle size (via tree shaking)

您可以在此处看到我们的管道:

You can see our pipeline here:

https://www.ag-grid.com/ag-grid-pipeline/

请注意,鉴于其复杂性,我们没有任何计划会在短期内进行任何改进,但我们希望最终能够提供少量捆绑服务

Note that we don't have any plans to do any improvements any time soon given its comlexity, but we are hoping to eventually be able to provide with a small bundle

我建议如果您是客户,请直接与农业电网支持联系以获取更多信息

I would recommend that if you are a customer, that you contact ag-grid support directly for more information

希望这会有所帮助

这篇关于Ag-grid束太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆