Created
January 19, 2013 12:18
-
-
Save robinpokorny/4572377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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