Multi CSS file support ! #18744
Unanswered
RanjbarAli
asked this question in
Help
Replies: 1 comment 4 replies
-
Tailwind CSS best practice would be to use a single CSS file. This is so that it is downloaded once and then cached for all subsequent requests. Generally, in a project, there would be class reuse so there would be minimal differences between CSS files as the size of the site increases. That being said, you'd:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am working on a Nuxt.js v4 project with Tailwind CSS v4.x. My project includes multiple layouts and pages, where each layout has its own custom Tailwind CSS file located in the assets directory. For example:
I would like to load and compile each layout's CSS file separately within its respective layout to avoid style conflicts and ensure proper isolation. How can I achieve this in a clean and idiomatic way using Tailwind CSS best practices?
Beta Was this translation helpful? Give feedback.
All reactions