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();
|
|
|
|
|
2021-04-10 17:45:00 +05:30
|
|
|
config.process().unwrap().to_env();
|
2021-04-08 22:08:21 +05:30
|
|
|
}
|