22 lines
452 B
Rust
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();
|
|
}
|