Open NookieGrey opened 4 years ago
So this is min repro error https://github.com/NookieGrey/craco-antd-font try to build this app
Looking at your repo linked above, you're using .less
files in a Create React App build, which CRA doesn't support natively. Renaming them to .css
solves the issue in your minimal repo, though I assume in your actual repository you're making use of Less styles?
Otherwise, looks like this may be related to an issue in the underlying craco-less
plugin - https://github.com/DocSpring/craco-less/issues/38
After adding plugin getting such error, only in build, development works well
assets/styles/index.less
@import "./fonts/index.less";
assets/styles/fonts/index.less
@import "./Museo.less";
assets/styles/fonts/Museo.less
all fonts are stored in assets/font
without plugin works great