vcs-controller/controller/build.rs

22 lines
457 B
Rust
Raw Normal View History

2024-07-27 20:13:03 -07:00
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");
}