Is there a way to obfuscate TailwindCSS classnames using PostCSS for React project in Vitejs?

Viewed 509

Currently building a React project with ViteJs, which uses TailwindCSS & PostCSS.

I would like the tailwind classnames to be obfuscated in the production build. Like object-cover to a2. Also, I am not aiming for minification.

I have tried looking for solutions but no luck.

Here is the postcss config:

module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
0 Answers
Related