updated cache buster

This commit is contained in:
realaravinth
2021-07-07 18:10:01 +05:30
parent 40801575b2
commit 5fa668ad97
4 changed files with 21 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use cache_buster::BusterBuilder;
use cache_buster::{BusterBuilder, NoHashCategory};
use std::process::Command;
fn main() {
@@ -48,7 +48,7 @@ fn cache_bust() {
// mime::TEXT_CSS,
// ];
let no_hash = vec!["bundle/f3c927fe82899094538e.module.wasm"];
let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])];
let config = BusterBuilder::default()
.source("./static/cache")