hash statics
This commit is contained in:
parent
a45bf45015
commit
d925573629
12 changed files with 139 additions and 1464 deletions
9
build.rs
9
build.rs
|
|
@ -1,3 +1,12 @@
|
|||
use cache_bust::CacheBust;
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=migrations");
|
||||
|
||||
let cache_bust = CacheBust::builder()
|
||||
.in_dir("static".to_owned())
|
||||
.out_dir("hashed_static".to_owned())
|
||||
.build();
|
||||
|
||||
cache_bust.hash_dir().expect("Cache busting failed");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue