libcachebust/examples/actix-web/build.rs

23 lines
452 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,
2021-07-04 15:04:14 +05:30
mime::TEXT_CSS,
2021-04-08 22:08:21 +05:30
];
let config = BusterBuilder::default()
2021-07-04 15:04:14 +05:30
.source("./static/cachable/")
.result("./dist")
2021-04-08 22:08:21 +05:30
.mime_types(types)
.copy(true)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap();
2021-04-08 22:08:21 +05:30
}