Last active
July 19, 2018 06:24
-
-
Save abhihebbar/8398586 to your computer and use it in GitHub Desktop.
Compile all LESS files to CSS in a directory (Recursive).
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
for lessfile in $(find -name "*.less"); do | |
cssfile=$(echo $lessfile | sed 's/\.less$/.css/i') | |
echo "Comiling $lessfile to $cssfile"; | |
rm -f $cssfile; | |
lessc $lessfile > $cssfile; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment