Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
netghost
· 9y ago · 0 comments
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.
Comments
[–]
hoodoof
9y ago
Dunno really. I've never used any of the technologies mentioned and things seem to have held together OK.
[–]
insin
9y ago
You 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
[–]
hoodoof
9y ago
The irony of forking create-react-app to add configuration.
[–]
adambowles
9y ago
This was the killer for create-react-app for me. I resentfully ejected so I could use SASS.
[–]
davidkpiano
9y ago
I compile the Sass files separately (using Node-Sass) and require the generated CSS file.
[–]
eyko
9y ago
Not at the moment.