Added web ui with templates
This commit is contained in:
parent
d2cb5b3031
commit
90b02eef79
24 changed files with 1403 additions and 78 deletions
14
build.rs
Normal file
14
build.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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();
|
||||
println!("cargo:rerun-if-changed=templates/*")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue