Convert .less to a Sass file
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
CHANGELOG.md
LICENSE
README.md
less2sass.gemspec

README.md

less2sass

Gem Version

###Convert a Less file to a Scss file.

Sorry if the name causes any confusion but this gem doesn't currently output Sass. It should be easy to convert Scss to Sass if necessary.

Installation

% gem install less2sass

Usage

Single file conversion

% less2sass inputfile.less [options]

Multiple file conversion

% less2sass *.less [options]

% less2sass inputfile1.less inputfile2.less [options]

Example

less2sass will output to inputfile.scss unless an alternative is given.

% less2sass styles.less

% less2sass styles.less -o styles.scss

both examples will output to & overwrite styles.scss

Options

option parameter
-o, --output FILE.scss name of outputfile (Single file only)
-d, --delete delete inputfile after outputfile is created
-p, --print output sass results to the terminal
-v, --version print less2sass version
-h, --help print help

Docker Image

This docker image was created by cthiebault so that installation of Ruby on your base OS isn't required.