2023-10-16 23:35:41 +05:30
|
|
|
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
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)
|
|
|
|
.follow_links(true)
|
|
|
|
.build()
|
|
|
|
.unwrap();
|
|
|
|
|
2021-04-11 22:53:16 +05:30
|
|
|
config.process().unwrap();
|
2021-04-08 22:08:21 +05:30
|
|
|
}
|