x-to-css
v2.0.5
Published
convert sass/scss/less to css
Downloads
4
Readme
x-to-css
Take less, sass, scss or css and output minified, autoprefixed css
usage
npm i x-to-css
or
npm i -D x-to-css
const XtoCss = require("x-to-css");
XtoCss("test/test.scss", "path/to/dist.css", {
maps: true,
callback: function(path, contents){
// pass the path and contents
}
});
//=> will output minified autoprefixed css to path/to/dist.css
//=> and a sourceMap to path/to/dist.css.map
XtoCss("some/style.less", "path/to/dist.css");
//=> will output minified autoprefixed css to path/to/dist.css
//=> no sourceMaps