3.0.1 • Published 6 years ago

rollup-plugin-less2 v3.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

rollup-plugin-less2

A rollup plugin for less files, support css modules.

Build Status NPM version Dependency Status devDependency Status

// rollup.config.js
import RollupPluginLess2 from 'rollup-plugin-less2';
import LessPluginCssModules from 'less-plugin-css-modules';

// ...

export default {
  // ...
  plugins: [
    RollupPluginLess2({
      output: false,
      cssModules: true,
      options: {
        plugins: [
          new LessPluginCssModules({
            mode: 'local',
            hashPrefix: 'test',
            generateScopedName: '[local]___[hash:base64:5]'
          })
        ]
      }
    })
  ]
};

Options

  • {string} rootpath=process.cwd()
  • {string|string[]} include='**/*.less', '**/*.css'
  • {string|string[]} exclude='node_modules/**'
  • {boolean|string|function} output=false
  • {string} sourceMapOutput
  • {boolean} cssModules=false
  • {object} options={}
  • {function} onWriteBefore
3.0.1

6 years ago

3.0.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago