issues
search
Anidetrix
/
rollup-plugin-styles
🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
242
stars
43
forks
source link
make some improvements to CSS modules
#183
Open
Luke-zhang-04
opened
3 years ago
Luke-zhang-04
commented
3 years ago
remove .module from
[name]
placeholder
The class names would come out like myFile_module_className__hash, when they should look like myFile_className__hash
feat: add modules.include option
options.modules
overrides the regex/function from
options.autoModules
and makes everything a CSS module when I only want to change the scoped name.
I probably didn't approach this in the best way, but modifying existing options could create a breaking change.
[name]
placeholderoptions.modules
overrides the regex/function fromoptions.autoModules
and makes everything a CSS module when I only want to change the scoped name.