less-plugin-css-modules
v0.0.3
Published
A less plugin for css modules
Downloads
4,289
Readme
less-plugin-css-modules
A less plugin for css modules.
// 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]'
})
]
}
})
]
};