bust cache on css on builds

This commit is contained in:
2022-03-20 10:43:25 -04:00
parent e2bd35acba
commit d2860a705e
2 changed files with 11 additions and 12 deletions

View File

@@ -24,7 +24,8 @@ fs.readFile("./index.html", function (err, data) {
day: "numeric",
})
);
const cssurl = $("link[type='text/css']").attr("href");
$("link[type='text/css']").attr("href", cssurl + "?" + new Date().getTime());
fs.writeFile("./index.html", $.html(), (err) => {
if (err) throw err;
console.log("Default view updated.");