-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Less/Sass #351
Comments
This issue has a lot of context around this question: #78 Thanks for offering your help but right now this is not something we want to support in this project. If you have a concrete example of why Less/Sass is useful in the context of a React app, please comment on that other issue, we'd love to know. |
Modifying or extending the Webpack configuration without ejecting, for example to add Sass/Less loaders, is also not supported with that feature not being anticipated. I encourage you to check out the alternatives if you find the Sass/Less support is required for your project. |
Also, while we don't intend to ship either tool in the default setup, please feel free to use them just like people have been using them for years: with a CLI. |
Thanks @vjeux for the pointers and @gaearon that's actually a very good alternative. Being all that said I think that your little project might finally make CSS in Javascript standard.
BONUS: Write styles with exact CSS/LESS/SASS Syntax with this package NOTE: The details in this conversation might help others with the same inquiries as me. Thanks a lot! |
Why is |
@amilajack Is “limitation” a wrong word for unsupported features? |
I feel like limitation has the wrong connotation. To me, using 'limitations' almost is almost equivalent to using 'drawbacks' in its place. IMO, something like Thoughts? |
For those looking to include sass, I've published a library to accomplish that without using a creact-react-app fork: https://github.com/rickharrison/create-react-app-sass |
We now have official Sass integration documentation. |
fix: do not add ESLint config to ejected app
Sass is now supported directly. |
Is there plans of adding Less support? We use it for our design system, and I'd love to add a pull request adding it. |
@selbekk, not at this stage (that I'm aware of), but one quick solution is to create a fork of There are other options, like Rescripts, but they're not recommended as you could break stuff. |
@mrmckeb oh it's easy enough to get working, but it'd be a huge convenience to (for example) create simple sandboxes in codebases that use LESS. :) Like, our design system is based on LESS, and I'd love to add simple reproductions of bugs or whatever with our pull requests and issues. I guess I could create a fork of The bigger question is why not support it, when css modules and sass already is supported? |
@selbekk, I wasn't on the team when the decision was made, but as a general rule, more features means more things can go wrong - and it means that every change we make needs to be considered against more variables, which can slow down the project as a whole. That being said, we're always open to discussion. If you'd like to open an issue, we can discuss this further. |
Hi guys! thank you for this project.
I hate being Captain Obvious here but what are the plans for Less Sass support? It seems like a pretty extreme action to eject my app just to get less or sass in it when they are pretty standard (less and sass would make this tool easier to sell to our bosses).
I understand that choosing either is against the core ideas but parameterizing the choice also is against the core ideas so we are running out of options.
When I prototyped something like create react app in my own, one of the things I thought of was to provide hooks to the webpack config to extend it with Less for example, is that something you would be interested in adding?
I might create some prototypes if we agree upon something since my employeer is pro oss contribution.
Thanks a lot
Fran
The text was updated successfully, but these errors were encountered: