Skip to content

Instantly share code, notes, and snippets.

@robinpokorny
Created January 19, 2013 12:18
Show Gist options
  • Save robinpokorny/4572377 to your computer and use it in GitHub Desktop.
Save robinpokorny/4572377 to your computer and use it in GitHub Desktop.
#1 Prepare your toolshed
npm install -g less
mkdir less/
#2+3 Rename and compile
for f in css/*.css; do b=$(basename $f .css); mv css/$b.css less/$b.less; lessc less/$b.less css/$b.css; done
#4 Enjoy and gain credibility
git add && git commit -m "Switch CSS to LESS in whole project #time 3m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment