-
Notifications
You must be signed in to change notification settings - Fork 3
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
Styles don't get updated #3
Comments
Hey, thanks for reporting the issue. I have also noticed this problem lately and came up with a solution. You need to create a fn main() {
// Tell Cargo that if the given file changes, to rerun this build script.
println!("cargo:rerun-if-changed=src/**/*.scss");
}
Sadly, there seems to be no other way currently as this is a limitation of Rust itself. I'm still in the process of thinking about a proper way to handle this but I will document this build script solution in turf's README and example projects. Thanks again for posting the issue. Please let me know if this solved the problem for you 🙂 |
Currently, the tracked path API is a thing, but nightly only. A trick Askama uses to track files right in the macro in stable is by using |
Thanks for pointing out this trick. Using |
Good news! I implemented a first draft of the |
The necessary changes have been made and are included in the latest |
Hello, I'm currently trying turf with Leptos.
I'm facing some issues while on
trunk serve --open
, everytime I try to edit an existing style it doesn't get updated even if I stop the ongoing serve and start again and also if I try to delete the cache by CTRL + F5.It just gets updated randomly, without any criteria from what I see.
Turf version: 0.4.0
Leptos version: 0.4.4 (features: csr, nightly)
Leptos router version 0.4.4 (features: csr)
The text was updated successfully, but these errors were encountered: