X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=backend%2Fbuild.rs;h=63a610596735ba2370f2bf1ed500a4ae509f2367;hb=c4620d6f981e84059c464604969a55ff085152f6;hp=8837cfc46047816ed53049bb7b3019d3acfbf482;hpb=9a4fa224d81978e42349bfbc6688933d67d37566;p=valheim_web.git diff --git a/backend/build.rs b/backend/build.rs index 8837cfc..63a6105 100644 --- a/backend/build.rs +++ b/backend/build.rs @@ -26,6 +26,11 @@ fn main() { .expect("Unable to compile SASS file, install SASS, see https://sass-lang.com/") } + // Create static directory if it doesn't exist. + if !Path::new("static").exists() { + std::fs::create_dir("static").unwrap(); + } + let output = if exists_in_path("sass.bat") { run_sass(Command::new("cmd").args(&["/C", "sass.bat"]))