@@ -14,10 +14,9 @@ workflow = "rust"
1414paths = [" content/**/*.md" , " content/**/*.html" ]
1515workflow = " content"
1616
17- [process .css_watch ]
18- command = [" tailwindcss" , " -i" , " tailwind.css" , " -o" , " content/static/tailwind.css" , " --watch=always" ]
19- cwd = " ."
20- autostart = false
17+ [watch .css ]
18+ paths = [" tailwind.css" ]
19+ workflow = " css"
2120
2221[process .server ]
2322command = [" cargo" , " run" ]
@@ -70,10 +69,9 @@ steps = [
7069
7170[workflow .startup ]
7271steps = [
73- { action = " start_process " , process = " css_watch " },
72+ { action = " run_hook " , hook = " build_css " },
7473 { action = " start_process" , process = " server" },
7574 { action = " wait_for_process" , process = " server" },
76- { action = " run_hook" , hook = " build_css" },
7775 { action = " run_hook" , hook = " current_browser_path" },
7876 { action = " start_process" , process = " tunnel" },
7977 { action = " run_workflow" , workflow = " publish_post_url" },
@@ -87,13 +85,24 @@ steps = [
8785 { action = " run_hook" , hook = " current_browser_path" },
8886 { action = " restart_process" , process = " tunnel" },
8987 { action = " run_workflow" , workflow = " publish_post_url" },
90- { action = " notify_reload" },
9188]
89+ triggers = [" browser_reload" ]
9290
9391[workflow .content ]
9492steps = [
9593 { action = " run_hook" , hook = " current_browser_path" },
9694 { action = " restart_process" , process = " tunnel" },
9795 { action = " run_workflow" , workflow = " publish_post_url" },
96+ ]
97+ triggers = [" browser_reload" ]
98+
99+ [workflow .css ]
100+ steps = [
101+ { action = " run_hook" , hook = " build_css" },
102+ ]
103+ triggers = [" browser_reload" ]
104+
105+ [workflow .browser_reload ]
106+ steps = [
98107 { action = " notify_reload" },
99108]
0 commit comments