sprity-customless
A less custom style processor for sprity sprity
This is a copy and modify of Alexander Slansky module - alexander@slansky.net - alexander@slansky.net
Requirements
Install
Install with npm
npm install sprity sprity-customless --save
If you want to use sprity-less
with the command line interface of sprity
install it globally.
npm install sprity sprity-customless -g
Usage
On commandline:
sprity out/ src/*.png -s style.less -p less
In JavaScript:
var sprite = require('sprity');
sprite.create({
...
style: 'style.less',
processor: 'customless'
...
}, function () {
console.log('done');
});
less usage example
@import 'sprite';
.icon-camera {
.sprite(@camera);
}
.icon-cart {
.sprite(@cart);
}
More
See sprity documentation