16 lines
378 B
Rust
Raw Normal View History

use static_files::NpmBuild;
fn main() -> std::io::Result<()> {
2023-11-02 21:29:14 +01:00
if !cfg!(debug_assertions) {
NpmBuild::new("../ffplayout-frontend")
.install()?
.run("generate")?
.target("../ffplayout-frontend/.output/public")
.change_detection()
.to_resource_dir()
.build()
} else {
Ok(())
}
}