dioxus-letter-werefox-cafe/build.rs

17 lines
454 B
Rust

fn main() {
let mut tailwind = std::process::Command::new("npx");
// tailwind.args([
// "-c",
// "tailwind.config.js",
// "-o",
// "src/index.css",
// "--minify",
// ]);
tailwind.args(
"tailwindcss -i src/index.css -c tailwind.config.js -o public/styles/tailwind.min.css --minify"
.split(" "),
);
tailwind.env("NODE_ENV", "production");
tailwind.spawn().unwrap();
}