Nocturnal Pajama Mutants

    less-plugin-css-modules

    0.0.3 • Public • Published

    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]'
              })
            ]
          }
        })
      ]
    };

    Install

    npm i less-plugin-css-modules

    DownloadsWeekly Downloads

    651

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • rikishi