Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Forked from mikesusz/pre-commit.sh
Created July 5, 2011 14:53
Show Gist options
  • Save jaymzcd/1064988 to your computer and use it in GitHub Desktop.
Save jaymzcd/1064988 to your computer and use it in GitHub Desktop.
a git pre-commit hook for compass compiling of sass to css
#!/bin/sh
#
# this pre-commit script uses compass to compile and compress stylesheet partials
compass compile wp-content/themes/mytheme/ -s compact --force --no-line-comments
wait $!
git add wp-content/themes/mytheme/style.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment