I'm using SASS files in Rails development. And I wonder if I should
gitignore
generated CSS files.
The problem with adding CSS files in Git is that they are simply redundant.
SASS files at public/stylesheets/sass
are the files I need.
So I have the following lines in gitignore
:
# public/stylesheets/*.css
But if I do this, when I push my app to Heroku, there's no CSS files obviously.
- What could be the best practices for managing SASS/CSS files?
I have never tried assets packing (e.g., minifying CSS files for production environment), but I plan to do that as well when I deploy to non-Heroku environment with Capistrano.