Skip to content

Instantly share code, notes, and snippets.

@abhihebbar
Last active July 19, 2018 06:24
Show Gist options
  • Save abhihebbar/8398586 to your computer and use it in GitHub Desktop.
Save abhihebbar/8398586 to your computer and use it in GitHub Desktop.
Compile all LESS files to CSS in a directory (Recursive).
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