vcs-controller/controller/build.rs
2024-07-28 03:13:03 +00:00

21 lines
457 B
Rust

use std::process::Command;
const INPUT_CSS_PATH: &str = "./templates/input.css";
const OUTPUT_CSS_PATH: &str = "./static/css/main.css";
fn main() {
run_tailwind();
}
fn run_tailwind() {
Command::new("tailwindcss")
.args([
"-i",
INPUT_CSS_PATH,
"-o",
OUTPUT_CSS_PATH,
"--minify",
])
.spawn()
.expect("Couldn't run tailwindcss, please run it manually");
}