3 ms·
I wish there was a mode to tree shake tailwind in production. Automatically extract all the class arguments into css classes for a cleaner markup
by j-krieger 6y ago
I wish there was a mode to tree shake tailwind in production. Automatically extract all the class arguments into css classes for a cleaner markup
- akoutmos 6y agoWhile there is no automatic way of doing it (as far as I know), I have been using Tailwind's @apply directive for things that are used site wide and that has worked out well. Really excited to use the latest 1.7 version that makes this process even easier given you don't need to split up pseudo classes https://github.com/tailwindlabs/tailwindcss/pull/2159 https://github.com/tailwindlabs/tailwindcss/pull/2159.