webpacknext.jstailwind-csscss-modulescss-loader

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.


Solution

  • 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.