bust cache on css on builds
This commit is contained in:
3
index.js
3
index.js
@@ -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.");
|
||||
|
Reference in New Issue
Block a user