less-theme-generator-promise
v0.0.3
Published
A package bundler for Less
Downloads
11
Maintainers
Readme
#Less Bundle Promise (multi-less-bundle-promise)
var path = require('path');
var bundle = require('less-theme-generator-promise');
const themes = [ 'green.less', 'blue.less', 'yellow.less' ];
themes.map(file => {
bundle({
src: path.join(cwd, file)
}).then(output =>{
// do something with output less
// less.render(output)
}).catch(error => {
console.log('Error', error);
});
})
bundle({
src: 'main.less'
}).then(output =>{
// do something with output less
// less.render(output)
}).catch(error => {
console.log('Error', error);
});