google / postcss-rename

Replace class names based on a customizable renaming scheme.
Apache License 2.0
125 stars 18 forks source link

Unclear How to Use #43

Closed lilsharu closed 3 years ago

lilsharu commented 3 years ago

I wanted to use this plugin with NextJS and tailwind, but there seems to be no guide on how to use it at all. Is there any tutorial I can follow?

nex3 commented 3 years ago

There's not (yet) a batteries-included solution for using this package. It provides the ability to rewrite your CSS selectors, but in order to refer to the rewritten selectors you'll also need to rewrite your HTML or JS class names which will require another plugin working in concert with this one. That's outside the scope of this plugin, although once something like that exists we can document how to use both at once.