rails / cssbundling-rails

Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
MIT License
579 stars 83 forks source link

Should assets build be added to git repo? #103

Closed rctneil closed 1 year ago

rctneil commented 2 years ago

As per the title, Should my Assets/build directories be added to my git repo?

I'm a bit confused by what should and should not be committed. and there does not appear to be any documentation or guidance to tell us what to do regarding this.

Neil

jasonfb commented 1 year ago

in a default new Rails app, the .gitignore file contains this:

/app/assets/builds/*
!/app/assets/builds/.keep

so, I'd recommend going with the grain here and following along with what Rails new does.