Compile All LESS CSS Files


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. find "$PWD" -name '*.less' | while read line; do
  2. REPLACE=`echo $line | sed "s|\.less|\.css|"`
  3.  
  4. # echo "$line --> $REPLACE"
  5. (lessc "$line" "$REPLACE" &)
  6. done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.