-
-
Save kumarbhushan/67c801062765f19da9cd3f9d96e5524a 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 Linus | |
#!/bin/bash | |
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; | |
//for macOS | |
#!/bin/bash | |
for lessfile in $(find . -name "*.less"); do | |
cssfile=${lessfile//.less/.css} | |
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