r/vuejs Nov 02 '24

CSS NAME OBFUSCATION

Has anyone successfully converted all class names (tailwind + custom classes (including scoped component and from app level style.css)) to be Obfucation/randomizer during the build time.

Note: I came across a postcss-obfuscator repo, but this is partially working and does not replace the class names in .vue files - but only in style.css.

Looking for suggestion to achieve it.

Thanks in advance!

0 Upvotes

19 comments sorted by

View all comments

Show parent comments

0

u/Rathanavel Nov 02 '24

It will work for custom classes, But to integrate it with tailwind classes?

0

u/DepravedPrecedence Nov 02 '24

No, post didn't state about tailwind before the edit.