-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow development hot reload #845
Comments
current workaround right know
|
Hmmm to me, playing around with it, seems more like a problem adding tailwind
to the main.css file. I am not sure this is Creating main.css works fine, but when I add tailwind declarations in, it does indeed takes like 4 seconds to HMR. To me it feels more like Nuxt or Nuxt Tailwind issue. EDIT: I can also confirm moving css path in nuxtConfig to the |
Probably something in between causes this issue, If you remove Nuxt UI |
Yeah I think Nuxt Tailwind is the issue here -- it is also Nuxt UI dependency in this usecase. |
Could you tell me if disabling the |
@benjamincanac No, it does not on my end. |
Thank you for the informations, will try to investigate asap! |
We see this in our initial startup as well, even with the above mentioned
|
The
So if you add another css file with the same config, it is normal that Tailwind gets duplicated. |
In my case if I don't have the
|
You shouldn't have to do that, If you look at this starter: https://stackblitz.com/edit/nuxt-ui?file=nuxt.config.ts it works out of the box. |
Correct. Regarding to the issue, I would say that is the correct answer. If you are to use default tailwind css in your custom css (for whatever reason, not required as module will hand that by itself)
then use tailwind's cssPath.
This way Tailwind will not get duplicated and HMR speed will be as intended. |
Environment
Version
v2.9.0
Reproduction
I created the project using
npx nuxi@latest init <project-name>
. And only added nuxt UI.https://github.com/metkm/nuxt-issue
Description
On empty project adding
css: ['~/assets/main.css']
to config slows don't hot reload time to 5 to 6 seconds for me even though the.css
file is emptyAdditional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: