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

Tailwind classes are not hot reloaded #2180

Closed
3 tasks
ealmloff opened this issue Mar 29, 2024 · 2 comments · Fixed by #2557
Closed
3 tasks

Tailwind classes are not hot reloaded #2180

ealmloff opened this issue Mar 29, 2024 · 2 comments · Fixed by #2557
Labels
bug Something isn't working cli Related to the dioxus-cli program hot-reload Related to the hot reload crate

Comments

@ealmloff
Copy link
Member

Problem

The blog post says that tailwind classes can now be hot reloaded, but they currently require a full recompile

Steps To Reproduce

Steps to reproduce the behavior:

  • Clone the dioxus repo (rev 2461790)
  • Run:
cd examples/tailwind
dx serve
  • Run in another terminal:
cd examples/tailwind
npx tailwindcss -i ./input.css -o ./public/tailwind.css --watch
  • Change a tailwind class
  • Observe a normal rust recompile

Expected behavior

In the blog post we mention that tailwind hot reloading is supported:
Screenshot 2024-03-29 at 8 32 45 AM

Environment:

  • Dioxus version: master
  • Rust version: nightly
  • OS info: MacOS
  • App platform: web

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program hot-reload Related to the hot reload crate labels Mar 29, 2024
@jkelleyrtp
Copy link
Member

I get these working for me but I did have to play with it a bit

@jkelleyrtp jkelleyrtp added this to the 0.6.0: Devtools milestone Apr 2, 2024
@bryant-video
Copy link

I get these working for me but I did have to play with it a bit

what did you do, i cannot get tailwind class changes autoreloading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program hot-reload Related to the hot reload crate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants