@@ -1896,6 +1896,7 @@ fn main() {
1896 // Do initial compile
1896 // Do initial compile
1897 if target_path.is_dir() {
1897 if target_path.is_dir() {
1898 let hl_files = collect_hl_files_recursive(target_path);
1898 let hl_files = collect_hl_files_recursive(target_path);
1899+ let mut all_included: Vec<PathBuf> = Vec::new();
1899 for file in &hl_files {
1900 for file in &hl_files {
1900 let path_str = file.to_string_lossy().to_string();
1901 let path_str = file.to_string_lossy().to_string();
1901 let effective_out = config.output.as_ref().map(|o| {
1902 let effective_out = config.output.as_ref().map(|o| {
@@ -1906,7 +1907,7 @@ fn main() {
1907 out_p.to_string_lossy().to_string()
1908 out_p.to_string_lossy().to_string()
1909− compile(
1910+ let (_, included) = compile(
1910 &path_str,
1911 &path_str,
1911 &CompileConfig {
1912 &CompileConfig {
1912 dev: true,
1913 dev: true,
@@ -1915,6 +1916,7 @@ fn main() {
1915 ..Default::default()
1916 ..Default::default()
1919+ all_included.extend(included);
1919 let (tx, _) = tokio::sync::broadcast::channel::<()>(16);
1921 let (tx, _) = tokio::sync::broadcast::channel::<()>(16);
1920 let serve_dir = config
1922 let serve_dir = config
@@ -1943,7 +1945,7 @@ fn main() {
1943 watch_loop(
1945 watch_loop(
1944 target_path,
1946 target_path,
1945 &hl_files,
1947 &hl_files,
1946− &[],
1948+ &all_included,
1949 Some(tx),
1951 Some(tx),