correct build script appending dates onto the CSS forever
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
David 2023-03-07 19:06:13 -05:00
parent ffb5fdada4
commit 7f4987d8d5
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
media="screen"
rel="stylesheet"
type="text/css"
href="/css/site.css?1678229090807?1678229616129?1678229646573?1678229670306?1678229728212?1678229754175?1678229784956?1678233805437"
href="/css/site.css?1678233952589"
/>
<meta
property="title"

View File

@ -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;