fix: null stdin breaks tailwind

This commit is contained in:
Jonathan Kelley committed 2025-05-14 10:49:51 +02:00
1 parent 03dfacc61b
commit 1b9a33ef97
1 file changed
+11 -1
+11 -1
View File
@@ -89,6 +89,17 @@ impl TailwindCli {
.context("failed to create tailwindcss output directory")?; .context("failed to create tailwindcss output directory")?;
} }
tracing::debug!("Spawning tailwindcss@{} with args: {:?}", self.version, {
[
binary_path.to_string_lossy().to_string(),
"--input".to_string(),
input_path.to_string_lossy().to_string(),
"--output".to_string(),
output_path.to_string_lossy().to_string(),
"--watch".to_string(),
]
});
let mut cmd = Command::new(binary_path); let mut cmd = Command::new(binary_path);
let proc = cmd let proc = cmd
.arg("--input") .arg("--input")
@@ -96,7 +107,6 @@ impl TailwindCli {
.arg("--output") .arg("--output")
.arg(output_path) .arg(output_path)
.arg("--watch") .arg("--watch")
.stdin(Stdio::null())
.stdout(Stdio::null()) .stdout(Stdio::null())
.stderr(Stdio::null()) .stderr(Stdio::null())
.spawn()?; .spawn()?;