Hello everyone!
Im using Sass, but I don't want to keep the .css files, just the scss.
For example, in my project I have: Login.js, Login.css and Login.scss.
Is it really neccessary to keep those css files?
Thanks!
Take a look at https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc if you haven't already. But the idea is that the boilerplate .css
files can be renamed to .scss
Yes, you must keep them due to us not having first-class integration with Sass.
You can, however, ignore them from version control.
You can add src/**/*.css
to your .gitignore
.
If you've already committed these you can run git rm src/**/*.css
.
What about generating only the main App.css and not creating a css file for every other scss file?
Most helpful comment
What about generating only the main App.css and not creating a css file for every other scss file?