Skip to content

Instantly share code, notes, and snippets.

@abhihebbar
Last active July 19, 2018 06:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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