开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜