Skip to content

Instantly share code, notes, and snippets.

@michelezonca
Last active December 19, 2015 11:29
Show Gist options
  • Select an option

  • Save michelezonca/5947686 to your computer and use it in GitHub Desktop.

Select an option

Save michelezonca/5947686 to your computer and use it in GitHub Desktop.
Shell snippet to compile every less file in the current directory with the .css suffix. It uses the ruby 'lessc' command
find "$PWD" -name '*.less' | while read line; do
OUTPUT=`echo $line | sed "s|\.less|\.css|"`
lessc -x "$line" >> "$OUTPUT"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment