How to generate many CSS files with Tailwind 3 #19233
Replies: 1 comment 2 replies
-
|
To do this, you need to run the TailwindCSS compilation multiple times with different The goal is not entirely clear. If the aim is to generate the CSS only for the components actually used (e.g., And I don't understand the purpose of So, I don't quite understand the goal, and this is a useful note from me regarding v4: All components from the UI package are included in the project's generated CSS, but I don't use every component (The logic can be applied to v3 as well, you just need to focus on the JS |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with a monorepo. I have a folder that I would like to generate its own CSS file.
For instance:
Right now, the
tailwind.config.jsfile reads thepackage/uicontent and adds the classes in theglobal.css.Is there a way to generate a file in
package/ui/styles.cssonly with the classes generated there? To be able to import that one inglobal.css, for instance:Beta Was this translation helpful? Give feedback.
All reactions