How to Implement TailwindCSS Globally for the Studio
Last updated: Nov 19, 2020
Is there any documentation on the
Nov 19, 2020, 8:42 AM
Not yet – work in progress 🙂
Nov 19, 2020, 8:43 AM
In the meantime, what would be the best method to implement something like tailwindcss globally for the studio?
Nov 19, 2020, 8:45 AM
This is for custom components ?
Nov 19, 2020, 9:09 AM
Nov 19, 2020, 9:10 AM
Checked with the team. It’s currently not easy to extend the webpack-config, but there's a couple of ways to do it • If you want to have full control over the tailwind build: Expose the custom input component as a plugin / npm-package (that you can alias on local dev) • In order to import compiled Tailwindcss, you can do:
in a component file
Nov 19, 2020, 9:25 AM
, for anyone else wanting to implement the second solution you can do the following;