开发者

Minify Stylesheets and Scripts With Git Hooks

开发者 https://www.devze.com 2023-03-13 13:16 出处:网络
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 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

精彩评论

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