Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Converting SCSS to CSS when a new file is saved.
function sass-watch {
if [ -z "$3" ]; then
SASS_IN='all.scss'
CSS_OUT='all.css'
SASS_WATCH_PATH='.'
else
SASS_IN=$1
CSS_OUT=$2
SASS_WATCH_PATH=$3
fi
puncher "echo \"[\033[1;33m\$(date +%H:%M:%S)\033[1;37m] \
\033[1;37mwrote \033[1;32m$CSS_OUT\033[1;37m\" && \
sass --scss $SASS_IN $CSS_OUT" $SASS_WATCH_PATH
}
@peterhellberg

This comment has been minimized.

Copy link
Owner Author

peterhellberg commented Apr 14, 2011

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.