libcachebust/actix-example/build.rs

22 lines
417 B
Rust
Raw Normal View History

2021-04-08 22:08:21 +05:30
use cache_buster::BusterBuilder;
fn main() {
let types = vec![
mime::IMAGE_PNG,
mime::IMAGE_SVG,
mime::IMAGE_JPEG,
mime::IMAGE_GIF,
];
let config = BusterBuilder::default()
.source("../dist")
.result("./prod")
.mime_types(types)
.copy(true)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap();
2021-04-08 22:08:21 +05:30
}