libcachebust/examples/actix-web/build.rs
2021-07-04 15:04:14 +05:30

22 lines
452 B
Rust

use cache_buster::BusterBuilder;
fn main() {
let types = vec![
mime::IMAGE_PNG,
mime::IMAGE_SVG,
mime::IMAGE_JPEG,
mime::IMAGE_GIF,
mime::TEXT_CSS,
];
let config = BusterBuilder::default()
.source("./static/cachable/")
.result("./dist")
.mime_types(types)
.copy(true)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap();
}