Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/katochimoto/less-plugin-css-modules
A less plugin for css modules
https://github.com/katochimoto/less-plugin-css-modules
css-modules less less-plugin
Last synced: about 2 months ago
JSON representation
A less plugin for css modules
- Host: GitHub
- URL: https://github.com/katochimoto/less-plugin-css-modules
- Owner: Katochimoto
- License: mit
- Created: 2017-01-12T18:07:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T12:35:03.000Z (about 8 years ago)
- Last Synced: 2024-11-30T15:22:01.227Z (about 2 months ago)
- Topics: css-modules, less, less-plugin
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# less-plugin-css-modules
A less plugin for css modules.[![Build Status][build]][build-link] [![NPM version][version]][version-link] [![Dependency Status][dependency]][dependency-link] [![devDependency Status][dev-dependency]][dev-dependency-link]
```js
// 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]'
})
]
}
})
]
};
```[build]: https://travis-ci.org/Katochimoto/less-plugin-css-modules.svg?branch=master
[build-link]: https://travis-ci.org/Katochimoto/less-plugin-css-modules
[version]: https://badge.fury.io/js/less-plugin-css-modules.svg
[version-link]: http://badge.fury.io/js/less-plugin-css-modules
[dependency]: https://david-dm.org/Katochimoto/less-plugin-css-modules.svg
[dependency-link]: https://david-dm.org/Katochimoto/less-plugin-css-modules
[dev-dependency]: https://david-dm.org/Katochimoto/less-plugin-css-modules/dev-status.svg
[dev-dependency-link]: https://david-dm.org/Katochimoto/less-plugin-css-modules#info=devDependencies