correct build script appending dates onto the CSS forever
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
2
index.js
2
index.js
@@ -40,7 +40,7 @@ fs.readFile("./index.html", function (err, data) {
|
||||
day: "numeric",
|
||||
})
|
||||
);
|
||||
const cssurl = $("link[type='text/css']").attr("href");
|
||||
const cssurl = $("link[type='text/css']").attr("href").split("?")[0];
|
||||
$("link[type='text/css']").attr("href", cssurl + "?" + new Date().getTime());
|
||||
fs.writeFile("./index.html", $.html(), (err) => {
|
||||
if (err) throw err;
|
||||
|
Reference in New Issue
Block a user