https://github.com/xiaofuzi/rollup-plugin-less
a less rollup plugin
https://github.com/xiaofuzi/rollup-plugin-less
less rollup-plugin
Last synced: 3 months 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:59:50.000Z (over 2 years ago)
- Last Synced: 2025-04-09T07:42:02.630Z (3 months ago)
- Topics: less, rollup-plugin
- Language: JavaScript
- Size: 140 KB
- Stars: 22
- Watchers: 2
- Forks: 24
- 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 `