js bundle wip

This commit is contained in:
Robin Appelman 2023-04-09 17:03:46 +02:00
commit 305e8ec8ed
11 changed files with 3090 additions and 130 deletions

View file

@ -1,9 +1,11 @@
use demostf_build::{bundle_style, save_asset};
use demostf_build::{bundle_script, bundle_style, save_asset};
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=style");
println!("cargo:rerun-if-changed=images");
println!("cargo:rerun-if-changed=script");
save_asset!("style.css", bundle_style("style/style.css"));
save_asset!("upload.js", bundle_script("script/upload.js"));
}