Skip to content
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

HMR not working when marking changes in tailwind.config.js #157

Closed
chrispreisler opened this issue Aug 25, 2020 · 7 comments
Closed

HMR not working when marking changes in tailwind.config.js #157

chrispreisler opened this issue Aug 25, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@chrispreisler
Copy link

Hey guys,
I think I found a HMR bug.

Version

@nuxtjs/tailwindcss: 3.0.1
nuxt: 2.14.0

Reproduction Link

https://codesandbox.io/s/cocky-water-uc4qt?file=/pages/index.vue

I created a tailwind.config.js and set a color value. I added to the headline "The Coldest Sunset" a class "text-bug". So the headline shows in red. When you change the value to blue in the tailwind.config.js, nothing happens.

Bildschirmfoto 2020-08-25 um 12 02 58

Expected Result

Before 3.0.0 I could make changes to the tailwind.config.js and then after some time the changes are shown in dev mode. Now nothing happens. I always have to restart the dev environment (yarn dev).

Do I miss any option to enable that or is this a bug since 3.0.0?

Thank you very much for your help in advance.

Best regards
Chris

@chrispreisler chrispreisler added the bug Something isn't working label Aug 25, 2020
@chrispreisler chrispreisler changed the title HMR not working with changes in tailwindcss.config.js HMR not working when marking changes in tailwindcss.config.js Aug 25, 2020
@chrispreisler chrispreisler changed the title HMR not working when marking changes in tailwindcss.config.js HMR not working when marking changes in tailwind.config.js Aug 25, 2020
@atinux atinux closed this as completed in 8c26472 Aug 25, 2020
@atinux
Copy link
Collaborator

atinux commented Aug 25, 2020

Hi @chrispreisler

This is fixed with 8c26472

Released with v3.0.2 :)

@chrispreisler
Copy link
Author

Wow that was fast. Thank you very much for your fast help. :)

@DanjBethel
Copy link

@atinux experiencing this now in 5.3.3. editing nuxt.config.ts doesn't restart the server. has to be manually ended and restarted.

Copy link
Collaborator

atinux commented Oct 12, 2022

What version of Nuxt are you using?

@ylhuang-richi
Copy link

@atinux I got the same problem.

"@nuxtjs/tailwindcss": "6.2.0"
"nuxt": "3.0.0"

Installed by npx nuxi init <project-name> and npm install --save-dev @nuxtjs/tailwindcss

@davidwebca
Copy link

davidwebca commented Apr 21, 2024

I'm experiencing this as well, I've never had it work, but in my case there's a full page reload of the browser, the change seems to be detected by the module because I see logs in the command line while I'm developing, but the changes in the config file are not taken into account and the only way to have them work is to fully kill the dev task and start again. I'm on Nuxt 3.11.1 and nuxtjs/tailwindcss 6.11.4

@ineshbose
Copy link
Collaborator

Hey - this issue was brought up again in #682 and we reworked the module to fix this. Please test your project with 6.12.0 and if issue persists, we can continue discussion in #682. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants