Prerequisites
- The app that uses tailwind + external component library (CL) (but not 3rdparty, your company internal one, for example)
- The component library also uses tailwind
The goal
To be able to purge safely unused tailwind classes from the build (https://tailwindcss.com/docs/controlling-file-size)
Solution
The idea here is simple: we're going to purge css on the app side + whitelist classes that component library is using.