agoumi
agoumi

Reputation: 494

How to hash tailwind css classes in Nextjs 12

I was wondering if there is a way to hash tailwind Css class names on production ? I am trying to hide all of those long Classnames in production.

Upvotes: 0

Views: 5760

Answers (1)

agoumi
agoumi

Reputation: 494

This answer is helpful to put you on the right track. The problem I was looking to fix is to hash the class names in my code that contains Tailwindcss styles without having to create a new class with the @apply tag. Or use a 3rd party library like twin macro.

Again Thank you @Terry.

Upvotes: 0

Related Questions