libcachebust/examples/actix-web/build.rs

27 lines
587 B
Rust
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
2023-10-17 00:18:20 +05:30
use libcachebust::BusterBuilder;
2021-04-08 22:08:21 +05:30
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)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap();
2021-04-08 22:08:21 +05:30
}