Native: implement hot-reloading of stylesheets (#4830)

* Make `tracing` feature of dioxus-native enable `tracing` feature of dioxus-native-dom

* Native: implement hotreloading of stylesheet assets

* Add asset support for native-headless-in-bevy example

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Remove println statements

Signed-off-by: Nico Burns <nico@nicoburns.com>

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns authored and GitHub committed 2025-10-24 15:56:55 -07:00
1 parent c55a29e930
commit 2bbfccfd04
7 files changed
+227 -6

No files matched your search

@@ -110,7 +110,7 @@ pub fn ui(props: UIProps) -> Element {
println!("rgba({r}, {g}, {b}, {a})");
rsx! {
style { {include_str!("./ui.css")} }
document::Stylesheet { href: asset!("/src/ui.css") }
div {
id: "panel",
class: "catch-events",