Minify Stylesheets and Scripts With Git Hooks
I don't have any experience using hooks in Git, but I'm curious if it's possible to minify stylesheets/scripts using them.
I have 开发者_如何转开发a development server, and a live server. I'd like to use a hook to minify the files when I do a pull from the live server, so that they're minified live, but I can continue to work with the unminified versions on the development server.
hooks is just shell scripts. rename post-commit.sample to the post-commit and add command line to this file
精彩评论