I'm kinda new to git. Also, this is my first project where I'm automating the deployment process. So far it's been bliss to being able to do git push dev
and have files uploaded, config files copied, etc.
Now I want to minify JS/CSS files when I push to my dev server. I was thinking of installing some command-line tool on the server for minifying and for-each js/css file on certain folder, compress and save, on a post-receive git hook.
Is this a good approach? (cause I've read about adding compressed files to the repo and other ideas I don't feel quite convinced)
If so, which tools are best for the task?