Created
February 14, 2016 23:48
-
-
Save Hikari9/5f77bca60c225c8c12cb to your computer and use it in GitHub Desktop.
Sass watcher
This file contains hidden or 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/bash | |
#Runs sass pre-compiler in directory | |
# Absolute path to this script, e.g. /var/www/pure-celadon/css/sass.sh | |
SCRIPT=$(readlink -f "$0") | |
# Absolute path this script is in, thus /var/www/pure-celadon/css | |
SCRIPTPATH=$(dirname "$SCRIPT") | |
# The absolute root path, e.g. /var/www/pure-celadon | |
ROOTPATH=$(dirname "$SCRIPTPATH") | |
# Run sass to watch style.scss | |
sass --watch --compass "$SCRIPTPATH/style.scss:$ROOTPATH/style.css" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment