less-plugin-css-modules

A less plugin for css modules

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
less-plugin-css-modules
000.0.37 years ago7 years agoMinified + gzip package size for less-plugin-css-modules in KB

Readme

less-plugin-css-modules
A less plugin for css modules.
!Build Statusbuildbuild-link !NPM versionversionversion-link !Dependency Statusdependencydependency-link !devDependency Statusdev-dependencydev-dependency-link
// 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]'
          })
        ]
      }
    })
  ]
};