component-less

Less transpiler for component-builder

Showing:

Popularity

Downloads/wk

35

GitHub Stars

1

Maintenance

Last Commit

7yrs ago

Contributors

5

Package

Dependencies

2

Size (min+gzip)

34.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

component-less

A plugin to transpile Less files for the component builder.

Install

$ npm install component-less

Usage

Add your .less files to the styles array in your component.json:

{
    "styles": [
        "base.less",
        "button.css"
    ]
}

Use the plugin during your build process:

var Builder = require('component-builder');
var less = require('component-less');
var fs = require('fs');

var builder = new Builder(__dirname);

builder.use(less);

builder.build(function (err, res) {
    if (err) {
        throw err
    }

    fs.writeFileSync('build/build.js', res.require + res.js);

    if (res.css) {
        fs.writeFileSync('build/build.css', res.css);
    }
});

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100