stylus-less
v1.2.2
Published
Import variables from less to stylus
Downloads
4
Readme
Usage
test.less
@color: black;
use plugin for stylus
var fs = require('fs');
var stylus = require('stylus');
var str = fs.readFileSync('test.styl', 'utf-8');
stylus(str)
.set('filename', 'test.styl')
.use(require('stylus-less')())
.render(function (err, css) {
if (err) {
throw err;
}
console.log(css);
});
import less in styl file(less ext can be ignored)
import-less('test.less')
body
color $color