2023-04-07 07:41:48 -05:00
|
|
|
fn main() {
|
|
|
|
let mut tailwind = std::process::Command::new("npx");
|
|
|
|
tailwind.args(
|
|
|
|
"tailwindcss -i src/index.css -c tailwind.config.js -o ../public/styles/tailwind.min.css --minify"
|
|
|
|
.split(" "),
|
|
|
|
);
|
|
|
|
tailwind.env("NODE_ENV", "production");
|
|
|
|
match tailwind.spawn() {
|
|
|
|
Ok(_) => (),
|
|
|
|
Err(_) => {
|
|
|
|
print!("Didn't find npx in the path, can't compile CSS. Is Node installed?");
|
|
|
|
()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-07 17:16:43 -05:00
|
|
|
// let mut content = Vec::new();
|
|
|
|
// for f in std::fs::read_dir("../data/poems").unwrap() {
|
|
|
|
// content.push(std::fs::read_to_string(f.unwrap().path()).unwrap());
|
|
|
|
// }
|
|
|
|
// }
|