react-boilerplate / react-boilerplate-cra-template

:fire: Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
https://react-boilerplate.github.io/react-boilerplate-cra-template/
MIT License
1.87k stars 394 forks source link

Less CSS support #97

Closed emagnier closed 3 years ago

emagnier commented 3 years ago

Do you support .less files? Or plan to support them? It seems you already support .scss files.

For sure I've a big preference for styled-components, and will continue to use them.

But I also have a few projects that need to use the ant-design library. Unfortunately it's based on Less. I would like to be able to onboard their main .less file globally on the project, while continuing to use styled-component on my react components. They also offer a .css version, but it doesn't allow me to edit the styling configurations (based on less variables). Thanks!

Can-Sahin commented 3 years ago

It's the duty of CRA. There are options for adding it.

Simply google create-react-app less loader

emagnier commented 3 years ago

Thank you! Yes I was able to manage it without eject, thanks to craco.