NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.81k stars 3.86k forks source link

Styles are not exported in package prevent from importing only the component styles you need #8087

Open gkorakas-eli opened 10 months ago

gkorakas-eli commented 10 months ago

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-vrdize?file=src%2Fstyles.less

Steps to reproduce

Import only the components you need in src/styles.less

What is expected?

It is expected to compile without warnings

What is actually happening?

It is expected to see a warning while compiling

Environment Info
ng-zorro-antd 16.2.0
Browser Chrome

A comment on the related issue

https://github.com/NG-ZORRO/ng-zorro-antd/issues/7696#issuecomment-1727507879

gkorakas-eli commented 10 months ago

Should the files be exported separately like you did with the components?

https://github.com/NG-ZORRO/ng-zorro-antd/pull/7928