ruby on rails 3 - Are you supposed to put *.css files into git when they're generated from *.scss? -


i started using sass scss stylesheets. these generate *.css files *.scss files. question is, files check version control? right check in both main.scss , generated main.css. wonder though if there way check in *.scss file , ensure *.css files generated on deployment.

in general, don't need check generated files source control. long code generation works consistently, , use consistently update target .css files, don't think need put them in source control.

that said, suggestion not put generated files source control intended more binary files (i.e. libs or executables generated build). main reason binary files cannot diffed/merged, if multiple people try checkin changes same binary, may end merging issues cannot resolved. since you're dealing plain text css files, don't think it's big of deal put them in source control too, have backup of actual target file.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -