Browse Source

Log watched dirs in status console

Jonathan Kelley 1 year ago
parent
commit
efb21b24ca
1 changed files with 17 additions and 0 deletions
  1. 17 0
      packages/cli/src/server/output.rs

+ 17 - 0
packages/cli/src/server/output.rs

@@ -102,6 +102,23 @@ pub fn print_console_info(
     println!();
 
     println!("    > Hot Reload Mode: {}", hot_reload.cyan());
+
+    println!(
+        "    > Watching: [ {} ]",
+        config
+            .dioxus_config
+            .web
+            .watcher
+            .watch_path
+            .iter()
+            .cloned()
+            .chain(Some(config.dioxus_config.application.asset_dir.clone()))
+            .map(|f| f.display().to_string())
+            .collect::<Vec<String>>()
+            .join(", ")
+            .cyan()
+    );
+
     if !proxies.is_empty() {
         println!("    > Proxies :");
         for proxy in proxies {