You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Add minify in production, source maps in development
79
+
if !crate::is_dev(){
80
+
command.arg("--minify");
81
+
}
82
+
ifcrate::is_dev(){
83
+
command.arg("--map");
84
+
}
85
+
86
+
let tailwind_output = command.output()
80
87
.unwrap_or_else(|e| {
81
88
// TODO: Return a proper error instead of panicking
89
+
let args_str = ifcrate::is_dev(){
90
+
format!("['--input', '{}', '--map']", args.id)
91
+
}else{
92
+
format!("['--input', '{}', '--minify']", args.id)
93
+
};
82
94
panic!(
83
-
"Failed to execute Tailwind CSS command, is it installed and is the path to its binary correct?\nCommand: '{}', Args: ['--input', '{}', '--minify', '--map']. Error: {}",
95
+
"Failed to execute Tailwind CSS command, is it installed and is the path to its binary correct?\nCommand: '{}', Args: {}. Error: {}",
0 commit comments