Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to encrypt tailwind classes? #831

Closed
JenuelDev opened this issue Apr 6, 2024 · 1 comment
Closed

How to encrypt tailwind classes? #831

JenuelDev opened this issue Apr 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@JenuelDev
Copy link

So Ive seen websites with anusual class name, and I came to learn that their class are encrypted or should I say hashed.

example:

class="1m8df4t jhou34 fMdyDu"

How to do something like this on nuxt tailwind module? thanks :)

@JenuelDev JenuelDev added the question Further information is requested label Apr 6, 2024
@ineshbose
Copy link
Collaborator

Hey 👋 Thanks for opening an issue on this repository.

Yes, there would be websites that hash/obfuscate their classnames, and while this would normally be in their production build, it's likely not a TailwindCSS principle and there's lot of community discussion/solutions around it. For this module, we have #240 open as we work on what's possible and what's not. For the websites you've seen, it depends on their tech stack and they may have internal tools on this that specifically works with their project. In Vue/Vite, you may be able to use CSS Modules that has hashing in the class names, along with the styles being scoped for the most part - but again, this isn't the Tailwind way. We're trying to see what we can do with unplugin to develop a solution; again, keep an eye on #240. Closing this as duplicate!

@ineshbose ineshbose closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants