mzohaibqc / antd-theme-generator

This script is to generate color.less file to update color related css in browser.
https://mzohaibqc.github.io/antd-theme-generator/
358 stars 87 forks source link

Antd for Angular does not recognize antdStylesFile path #43

Closed cipchk closed 4 years ago

cipchk commented 4 years ago

https://github.com/mzohaibqc/antd-theme-generator/blob/master/index.js#L340

error Error: ENOENT: no such file or directory, open '/Users/cipchk/Desktop/work/delon/node_modules/ng-zorro-antd/dist/antd.less'

For antd for angular version antd.less should be ng-zorro-antd.less.

mzohaibqc commented 4 years ago

@cipchk Show you configurations and also show directory structure of node_modules/ng-zorro-antd

cipchk commented 4 years ago

@mzohaibqc https://unpkg.com/browse/ng-zorro-antd@9.1.2/

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

mzohaibqc commented 4 years ago

@cipchk which means that it will not work as it is but if can handle path assumptions and allow some parameter which will allow users to pass custom paths for antd.less which is https://unpkg.com/browse/ng-zorro-antd@9.1.2/ng-zorro-antd.less in this case then it will work without any logic change. However, I am not sure I'll able to add this change over the weekend or not. If you or someone else is willing to create a PR, most welcome.

It will be resolved soon, at max, within 2 weeks

github-actions[bot] commented 4 years ago

Stale issue message