4 ms·
Is there any sane way to use Sass, Less, or PostCSS without ejecting though? Not having variables available in your CSS seems pretty untenable for anything tha
by netghost 10y ago
Is there any sane way to use Sass, Less, or PostCSS without ejecting though? Not having variables available in your CSS seems pretty untenable for anything that has more than a handful of styled components.
- hoodoof 10y agoDunno really. I've never used any of the technologies mentioned and things seem to have held together OK.
- eyko 10y agoNot at the moment.
- adambowles 10y agoThis was the killer for create-react-app for me. I resentfully ejected so I could use SASS.
- davidkpiano 10y agoI compile the Sass files separately (using Node-Sass) and require the generated CSS file.
- insin 10y agoYou can use this fork of react-scripts which adds configuration for enabling new options, including use of style preprocessors: https://github.com/kitze/create-react-app https://github.com/kitze/create-react-app
- hoodoof 10y agoThe irony of forking create-react-app to add configuration.