This will require only one dependency, and one line added to your package.json
and it's super fast.
- Create an app wih create-react-app.
- Install
node-sass
. - Create your base sass file inside
src/sass
. - Add a new script to package json that will watch the file, process sass and compile it into
src/css
. - Include the compiled css into React via
require
, this way your app will reload whenever the new css is compiled. - ran the new script along with
npm start
.