Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaofuzi/rollup-plugin-less

a less rollup plugin
https://github.com/xiaofuzi/rollup-plugin-less

less rollup-plugin

Last synced: 1 day ago
JSON representation

a less rollup plugin

Awesome Lists containing this project

README

        

## Install

```node
npm install rollup-plugin-less --save
```

## usage

```js
import './test.less';
//generate css will be auto insert to the head tag if you set insert be true
```

```js
import { rollup } from 'rollup';
import less from 'rollup-plugin-less';

rollup({
entry: 'main.js',
plugins: [
less()
]
});
```

## Options

### insert

+ Default: `false`
+ Type: `Boolean`

If you specify `true`, the plugin will insert compiled CSS into `