Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

component-lesser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-lesser - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

index.js

@@ -36,3 +36,3 @@ var async = require('async');

builder.config.styles.forEach(function(file){
builder.removeFile('styles', file);
isLess(file) && builder.removeFile('styles', file);
});

@@ -45,3 +45,3 @@ return callback();

}
builder.removeFile('styles', file);
isLess(file) && builder.removeFile('styles', file);
});

@@ -48,0 +48,0 @@ var importsLess = "";

{
"name": "component-lesser",
"version": "0.0.6",
"version": "0.0.7",
"description": "A plugin to transpile Less files for the compy.",

@@ -5,0 +5,0 @@ "keywords": [

# component-less
A plugin to transpile Less files for the component builder.
A plugin to transpile Less files in single context for compy. Allows to use twitter bootstrap.
## Install
$ npm install component-less
$ npm install component-lesser
## Usage
Add your `.less` files to the `styles` array in your `component.json`:
```javascript
{
"styles": [
"base.less",
"button.css"
]
}
```
Use the plugin during your build process:
```javascript
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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc