Example repo on how to generate a static copy of Tailwind's config at build time using Vite's virtual module feature with TypeScript types. It's an alternative to babel-plugin-preval
or directly using Tailwind's resolveConfig
-helper.
Discovered first here: https://evomark.co.uk/development/making-your-tailwind-config-available-to-your-entire-application-with-vite/