How to add Sass to React App (no-eject)
Use Sass in your React app with react-scripts@2.0.0
Published in
1 min readDec 13, 2018
As from react-scripts@2.0.0
the tedious task of ejecting the config files and adding a loader is no longer needed.
Now it's as simple as installing node-sass
, and renaming the style files:
🌹 npm install node-sass --save
Update src/App.css
and index.css
to src/App.sass
and index.sass
🌹 yarn start
Official documentation at Create React Docs.