Re:Lessons learned as a React contractor
by netghost on Thursday January 05, 2017 @11:40PM
(#13334006)
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.
[ Parent
| on HN ]
Re:Lessons learned as a React contractor
by hoodoof on Thursday January 05, 2017 @11:56PM
(#13334079)
Dunno really. I've never used any of the technologies mentioned and things seem to have held together OK.
You can use this fork of react-scripts which adds configuration for enabling new options, including use of style preprocessors:
The irony of forking create-react-app to add configuration.
Re:Lessons learned as a React contractor
by adambowles on Friday January 06, 2017 @04:27AM
(#13334941)
This was the killer for create-react-app for me. I resentfully ejected so I could use SASS.
Re:Lessons learned as a React contractor
by davidkpiano on Friday January 06, 2017 @08:35AM
(#13336078)
I compile the Sass files separately (using Node-Sass) and require the generated CSS file.