diff --git a/gh-pages/Cargo.toml b/gh-pages/Cargo.toml index 8ce4aa6..6087a27 100644 --- a/gh-pages/Cargo.toml +++ b/gh-pages/Cargo.toml @@ -15,3 +15,7 @@ icondata = { version = "0.0.7", features = [ leptos_router = { version = "0.5.0-beta2", features = ["csr"] } indoc = "2.0.1" regex = "1.8.2" +leptos_devtools = { git = "https://github.com/luoxiaozero/leptos-devtools.git" } + +[features] +tracing = ["leptos/tracing"] diff --git a/gh-pages/src/main.rs b/gh-pages/src/main.rs index e533a1a..4679a7c 100644 --- a/gh-pages/src/main.rs +++ b/gh-pages/src/main.rs @@ -6,5 +6,7 @@ use app::*; use leptos::*; fn main() { + #[cfg(feature = "tracing")] + leptos_devtools::devtools(); mount_to_body(App) }