Created
December 27, 2014 20:04
-
-
Save benburwell/0ef673f6311b5191186e to your computer and use it in GitHub Desktop.
Git pre-commit hook to compile LESS files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PATH=/usr/local/bin:$PATH | |
cd /Users/Ben/Documents/Code/benburwell.github.io/assets/less | |
lessc --clean-css style.less ../css/style.css | |
cd /Users/Ben/Documents/Code/benburwell.github.io | |
git add /Users/Ben/Documents/Code/benburwell.github.io/assets/css/style.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment