mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
css caching
This commit is contained in:
parent
d595089c7c
commit
6485612898
5 changed files with 36 additions and 5 deletions
8
build.rs
8
build.rs
|
|
@ -18,7 +18,13 @@ fn main() {
|
|||
println!("cargo:rerun-if-changed=style");
|
||||
println!("cargo:rerun-if-changed=images");
|
||||
|
||||
write(format!("{out_dir}/style.css"), build_style()).expect("failed to write compiled style");
|
||||
let style = build_style();
|
||||
write(format!("{out_dir}/style.css"), &style).expect("failed to write compiled style");
|
||||
write(
|
||||
format!("{out_dir}/style.md5"),
|
||||
format!("{:x}", md5::compute(&style)),
|
||||
)
|
||||
.expect("failed to write compiled style hash");
|
||||
}
|
||||
|
||||
pub fn build_style() -> String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue