Last active
April 7, 2016 18:17
-
-
Save jnaklaas/360332b8e19e33dea41c353ee0a1fe43 to your computer and use it in GitHub Desktop.
less2sass multiple files https://rubygems.org/gems/less2sass
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
# script by github.com/jnaklaas | |
# base script by github.com/dunckr: https://gist.github.com/dunckr/1e149d5decf1f02e4fb9 | |
LESS_PATH=${1:-"./"} | |
SASS_PATH=${2:-$LESS_PATH} | |
mkdir -p $SASS_PATH | |
for filename in $LESS_PATH*.less; do | |
DESTINATION=$SASS_PATH"_`basename $filename .less`.scss" | |
echo "less2sass $filename to $DESTINATION" | |
less2sass "${filename}" $DESTINATION; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Execute like this:
If you need your sass files in the same folder: