ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Bundle bloated with icons and i18n

Open timonmasberg opened this issue 1 year ago • 0 comments

Reproduction link

https://github.com/kordis-leitstelle/kordis/pull/583

Steps to reproduce

Build the project with prod config nx build spa --prod --stats-json, check the bundle size e.g., with the webpack bundle analyzer.

What is expected?

A bundle without the icons (or with the necessary icons), and, if used with the icon module, ONLY with the included icons.

What is actually happening?

The bundle is extremely bloated with the i18n chunk and the icons (1mb in total) image

Environment Info
ng-zorro-antd 17.0.1
Browser Chrome

Like this, the library is unusable for us, since the bundle size is just too big (best practice is to throw an error during the build if it exceeds 1mb)

timonmasberg avatar Dec 22 '23 20:12 timonmasberg