rpl
rollup-plugin-less
npm i rollup-plugin-less
rpl

rollup-plugin-less

a less rollup plugin

by 杨小福

1.1.3 (see all)License:ISCTypeScript:DefinitelyTyped
npm i rollup-plugin-less
Readme

Install

npm install rollup-plugin-less --save

usage

import './test.less';
//generate css will be auto insert to the head tag if you set insert be true
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 <head/> tag.

output

  • Default: rollup.build.css

  • Type: String|Function|Boolean

If you specify a string, it will be the path to write the generated CSS. If you specify a function, call it passing the generated CSS as an argument. If you specify a boolean, true will write the generated CSS to rollup.build.css, false won't write the file.

include

  • Default: [ '**/*.less', '**/*.css' ]

  • Type: String|Array

Minimatch pattern or array of minimatch patterns to determine which files are transpiled by the plugin.

exclude

  • Default: node_modules/**

  • Type: String|Array

Minimatch pattern or array of minimatch patterns to determine which files are explicitly not transpiled by the plugin, overrules the include option.

option

  • Type: Object

Options for less.

Downloads/wk

3.6K

GitHub Stars

19

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

13

OPEN ISSUES

13

OPEN PRs

7
VersionTagPublished
1.1.3
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate