Compress JS/CSS files on deploy using Git

后端 未结 3 1744
死守一世寂寞
死守一世寂寞 2021-02-09 14:28

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 hav

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 14:36

    Maybe you're looking for adding a post-checkout hook (or maybe it's another hook, according to your deploy system), and then launch with that the script which will minify your files.

    You can also use the hook to check the modified date of the concerned files before doing that

提交回复
热议问题