ant-design / compatible

https://compatible.now.sh
MIT License
89 stars 23 forks source link

fix: import less files in antd lib folder instead of es folder #64

Closed willc001 closed 4 years ago

willc001 commented 4 years ago

According to Customize in less file, I imported ~antd/dist/antd.less into my less file. And I imported ~@ant-design/compatible/assets/index.less, when I was migrating to v4. Then when I was trying to build my project, the memory used by nodejs process was increasing endless. I noticed that the less files used in ~antd/dist/antd.less is from the lib folder, and the less files used in ~@ant-design/compatible/assets/index.less is from the es folder. So I used the less files in lib folder instead and the problem fixed. I compared both files built from the es folder and built from the lib folder, they was exactly the same.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

willc001 commented 4 years ago

@afc163 Could you please have a look at this PR?

afc163 commented 4 years ago

@shaodahong 发一个新版吧。

shaodahong commented 4 years ago
+ @ant-design/compatible@1.0.5