To run:
cd root-directory-of-project/
ruby less-to-sass.rb
# or
ruby less-to-sass.rb <file-glob-to-convert>
Warning: This will delete the .less
files it converts and replace them with .scss
equivalents
Things this script doesn't do:
- Convert mixins with
when
-directives - Simply removes quotes on
~"unescaped"
strings - Convert class-like mixins
.foo { }
.bar { .foo(); }
- Some more minor bugs