A LESS plugin for Duo
$ npm install --save duo-less
$ duo --use duo-less
var Duo = require('duo');
var less = require('duo-less');
var duo = Duo(__dirname)
.entry('index.less')
.use(less());
duo.run(function (err, file) {
if (err) throw err;
// file => generated CSS source code
});
If you can figure out the LESS docs about config options,
any of those should work. The filepath
option is the only one set via this plugin.
(and you likely should not override that one)