This package has been deprecated
This package is no longer maintained.
Easy Less processing for node/moonboots projects.
npm install lessitizer --save
// Parse `styles/less/theme.less` and `styles/less/app.less`// and write them to `styles/css/theme.css` and `styles/css/app.css`;
// Parse the Less strings and pass it to the callback;
files can be one of two things:
- a path to a less file
- an object with a
lessproperty that is a string of Less
In the case where you are passing an object, you can also include a
dir property. This is the path to where the directory where Less file should be, if it were actually written to disk. This will allow you to use Less's
@import syntax relative to the
dir you pass in.
You can also pass in a
filename option to specify the name of the file when/if it gets written to disk.
It should look like this:
less: '@import...'dir: '/path/to/less/styles'filename: 'cool-file'
The path to the directory where all the CSS files will be written. If this is omitted, then the generated CSS will be passed to the callback.
Object, see below for defaults)
An object that will be passed directly to
new less.Parser(). See the Less configuration docs for available options. There are a few default values:
true, any errors will be written to the CSS file and displayed instead of the
Tests and Code Coverage