I'm trying to add sass/scss support to create-react-app.
So I did these steps:
npm ejectnpm install sass-loader node-sass --save-devOpned the webpack.config.dev.js file and added this to loaders section:
{ test: /\.scss$/, loaders: ["style", "css", "sass"] },
In my app.js file i reference an scss file: import './css/app.scss';
When i run npm start everything compiles with no errors but the application loads with no styling.
What am i missing?
include: paths.appSrcexclude?react-scriptsusingnode-sass-chokidar. I was able to get it working by deleting the old autogenerated.cssfiles and uninstallingnode-sass-chokidarandnpm-run-all. After, I rannpm install sass-loader node-sass --save-dev. Then, I rannpm startand it output file path errors in the console, which I was able to resolve quickly with using the CRA style docs. Then, it all worked fine.