#Less Bundle Promise (less-bundle-promise)
Bundle all of your LESS files into a single file. Useful for large projects with multiple components utilizing their own LESS files.
Usage
var bundle = require('less-bundle-promise');
bundle({
src: 'main.less'
}).then(output =>{
}).catch(error => {
console.log('Error', error);
});
bundle({
src: 'main.less',
dest: 'bundle.less',
writeFile: true
}).then(output =>{
}).catch(error => {
console.log('Error', error);
});
A `bundle.less` file will be generated with all less output
Options
interface IConfig {
src: string;
dest: Array<string>;
writeFile?: boolean;
version?: string;
license?: string;
}