Purge CSS
Learn how to manage CSS classes by using the purge tool.
We'll cover the following...
Tailwind generates an enormous number of classes that we probably will not use. For example, Tailwind generates hundreds of color variants for many different utility families. We can get pretty far by using the corePlugins
option to remove unused plugins, especially by limiting the color options to colors we use, but there’s a more automated way available. Tailwind uses a tool called PurgeCSS to identify which classes we use and remove unused classes from our build.
Enable purging
To enable purging, we change the array in the ...