google / postcss-rename

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

How can this work with tailwindcss and postcss-purgecss? #24

Closed brielov closed 4 years ago

J05HI commented 4 years ago

@brielov @iflan @nanaze @rzhw I tried the same. It only replaces the class names in CSS. In HTML they don't get replaced. Is there an example?

rzhw commented 4 years ago

This plugin doesn't rewrite class names in JS or HTML; you'll need something that can consume the map passed to outputMapCallback by this plugin. That could be a Webpack plugin, for example.

There isn't one we know of currently, but we're happy to add links in the README.