2024-02-19 23:51:18 +01:00
|
|
|
use std::env::current_dir;
|
|
|
|
|
use std::process::Command;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
Command::new("npx")
|
|
|
|
|
.args(&["tailwindcss", "-i", "base.css", "-o"])
|
|
|
|
|
.arg(&format!(
|
|
|
|
|
"{}/static/styles.css",
|
|
|
|
|
current_dir().unwrap().into_os_string().to_str().unwrap()
|
|
|
|
|
))
|
|
|
|
|
.status()
|
|
|
|
|
.unwrap();
|
2024-03-18 23:04:48 +01:00
|
|
|
println!("cargo:rerun-if-changed=templates/")
|
2024-02-19 23:51:18 +01:00
|
|
|
}
|