@raybooysen/rollup-plugin-less
a rollup plugin for less files
Last updated 2 months ago by raybooysen .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @raybooysen/rollup-plugin-less 
SYNC missed versions from official npm registry.

Why did we fork?

Until https://github.com/xiaofuzi/rollup-plugin-less/issues/24 is fixed, the rollup plugin is broken if you use multiple less files.

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.

Current Tags

  • 1.1.2                                ...           latest (2 months ago)

4 Versions

  • 1.1.2                                ...           2 months ago
  • 0.1.4                                ...           5 months ago
  • 0.1.3                                ...           5 months ago
  • 0.1.2                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 8
This Month 12
Last Day 0
Last Week 4
Last Month 0
Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |