Jelajahi Sumber

fix: null stdin breaks tailwind

Jonathan Kelley 1 bulan lalu
induk
melakukan
1b9a33ef97
1 mengubah file dengan 11 tambahan dan 1 penghapusan
  1. 11 1
      packages/cli/src/tailwind.rs

+ 11 - 1
packages/cli/src/tailwind.rs

@@ -89,6 +89,17 @@ impl TailwindCli {
                 .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 proc = cmd
             .arg("--input")
@@ -96,7 +107,6 @@ impl TailwindCli {
             .arg("--output")
             .arg(output_path)
             .arg("--watch")
-            .stdin(Stdio::null())
             .stdout(Stdio::null())
             .stderr(Stdio::null())
             .spawn()?;