tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Purge Keyframes not supported in version 3

Open h7arash opened this issue 4 years ago • 1 comments

According to this issue we can set option for purge Keyframes in version 2. But in new version i can't find any documentation for this option of purge.

h7arash avatar Dec 13 '21 16:12 h7arash

Hey! So by default Tailwind CSS v3.0 already does not include keyframes for stuff that's configured in your tailwind.config.js file. For example, if you don't use the animate-spin utility, it won't appear in your outputted CSS.

However, Tailwind does not purge keyframes from your custom CSS, simply because we don't know if you need it or not. This is actually how it worked already in Tailwind v2.

Of course you can still purge keyframes from your custom CSS, you'll just need to use another tool for this, like PurgeCSS.

Hope that helps! 💪

reinink avatar Dec 15 '21 20:12 reinink