-
|
I am working on a nuxt 2 application, and after migrating to tailwind 3, the times build times on dev mode have increased significantly. A single component change:
I follow the official instructions to install tailwind. I tried to debug the problem and I am seeing that tailwind is processing many files. I suspect that is being called for the modified file AND for each component that contains an On the other hand, using tailwind 2, it is only being called for the modified file |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
I was reading https://tailwindcss.com/docs/functions-and-directives#using-apply-with-per-component-css and it says
Maybe this is the problem and tailwind a different tailwind instance is running for each component. In this case, the tracking content for these instances should be only the modified file and not every file defined on the tailwind config. |
Beta Was this translation helpful? Give feedback.
-
|
I created a repo with the minimal setup here https://github.com/axelhzf/nuxt-tailwind-performance Running the project with the debug enabled ( |
Beta Was this translation helpful? Give feedback.
-
|
Actually, the problem is already solved in #7524 |
Beta Was this translation helpful? Give feedback.
-
|
I'm still having this same problem on with Tailwind 3.2.1 and Nuxt 2, anyone else still has the problem or have an idea why? |
Beta Was this translation helpful? Give feedback.


Actually, the problem is already solved in #7524