Skip to content

Too Slow / Development Flow #2919

Closed Answered by gbj
omani asked this question in Q&A
Sep 3, 2024 · 2 comments · 15 replies
Discussion options

You must be logged in to vote

Hm let's see...

Looks like for hot-reloading to work you need to edit Cargo.toml to:

  1. add the nightly feature to leptos
  2. add style-file = "style/tailwind.css" underneath tailwind-input-file = "style/tailwind.css"

(And make sure you remove or edit the rust-toolchain.toml file so it uses nightly)

With those changes I can see this sort of responsiveness, where it will both update the class in the HTML and reload the Tailwind file while it is still recompiling Rust in the background

Screen.Recording.2024-09-03.at.4.06.02.PM.mov

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
9 replies
@omani
Comment options

@gbj
Comment options

@omani
Comment options

@gbj
Comment options

Answer selected by omani
@omani
Comment options

@omani
Comment options

@gbj
Comment options

@omani
Comment options

Comment options

You must be logged in to vote
6 replies
@gbj
Comment options

@omani
Comment options

@omani
Comment options

@gbj
Comment options

@omani
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants