@ovh-ux/rollup-plugin-less-inject

1.0.6 • Public • Published

rollup-plugin-less-inject

A Rollup plugin for injecting Less files as CSS into HTML document's head.

Downloads Dependencies Dev Dependencies Gitter

Install

$ yarn add -D @ovh-ux/rollup-plugin-less-inject

Usage

// rollup.config.js
import lessInject from '@ovh-ux/rollup-plugin-less-inject';

export default {
  input: 'src/main.js',
  output: {
    file: 'dist/main.js',
    format: 'cjs',
  },
  plugins: [
    lessInject(),
  ],
};

Options

Include

  • Default: [ '**/*.less', '**/*.css' ]
  • Type: String|Array

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

Exclude

  • Default: node_modules/**
  • Type: String|Array

Minimatch pattern or array of minimatch patterns to determine which files won't be transpiled by the plugin, takes precedence over the include option.

Option

  • Type: Object

Options for less.

Test

$ yarn test

Related

See more: https://github.com/rollup/plugins.

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS

Dependencies (4)

Dev Dependencies (14)

Package Sidebar

Install

npm i @ovh-ux/rollup-plugin-less-inject

Weekly Downloads

619

Version

1.0.6

License

BSD-3-Clause

Unpacked Size

12.1 kB

Total Files

6

Last publish

Collaborators

  • jisay
  • blary_jp
  • antleblanc
  • cbourgois
  • ovh-ux-cds
  • lizardk
  • ovh
  • marie-j