Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (35 loc) · 1.34 KB

less-plugin-css-modules

A less plugin for 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]'
          })
        ]
      }
    })
  ]
};