Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaofuzi/rollup-plugin-less
a less rollup plugin
https://github.com/xiaofuzi/rollup-plugin-less
less rollup-plugin
Last synced: about 1 month ago
JSON representation
a less rollup plugin
- Host: GitHub
- URL: https://github.com/xiaofuzi/rollup-plugin-less
- Owner: xiaofuzi
- Created: 2016-08-14T11:45:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:59:50.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T08:51:31.804Z (about 1 month ago)
- Topics: less, rollup-plugin
- Language: JavaScript
- Size: 140 KB
- Stars: 22
- Watchers: 3
- Forks: 23
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - less - Compile LESS files. (Plugins / CSS)
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 `