You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently tried scaffolding an app with NG-ZORRO which uses the @ant-desitn/icons-angular package. As you can see on the webpack bundle analysis, the module seems to take surprisingly large chunk of the file even with production after tree-shaking.
NOTE: the tooltip shows non-minified size but the important thing here is how big it is relative to the whole bundle
If I'm not mistaken I'm using dynamic icon loading so I'm surprised to see that the Ant Design Angular Icons module to take almost 3 times the space of the Angular Router module (618kb vs 262kb).
Here is the IconsProviderModule generated by the schematics:
I even tried removing all module imports from Ant Design and NG ZORRO icon modules, and removing all icons from the app, but even then there is literally no change. Is there something I'm missing or it's just the minimum bundle size that for now I can't optimize any further?
Project info: Angular: 16.0.3 ng-zorro-antd: 16.0.0 @ant-design/icons-angular: 16.0.0
NG Zorro added using the schematics and selecting the side menu template
The text was updated successfully, but these errors were encountered:
Hi, we have the same issue, the library is currently unusable for us. I18n and the Icons module are insanely large. We tried every approach, but bundle size does not vary.
I've recently tried scaffolding an app with NG-ZORRO which uses the
@ant-desitn/icons-angular
package. As you can see on the webpack bundle analysis, the module seems to take surprisingly large chunk of the file even with production after tree-shaking.NOTE: the tooltip shows non-minified size but the important thing here is how big it is relative to the whole bundle
If I'm not mistaken I'm using dynamic icon loading so I'm surprised to see that the Ant Design Angular Icons module to take almost 3 times the space of the Angular Router module (618kb vs 262kb).
Here is the IconsProviderModule generated by the schematics:
I even tried removing all module imports from Ant Design and NG ZORRO icon modules, and removing all icons from the app, but even then there is literally no change. Is there something I'm missing or it's just the minimum bundle size that for now I can't optimize any further?
Project info:
Angular: 16.0.3
ng-zorro-antd: 16.0.0
@ant-design/icons-angular: 16.0.0
NG Zorro added using the schematics and selecting the side menu template
The text was updated successfully, but these errors were encountered: