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:
parent
ffb5fdada4
commit
7f4987d8d5
@ -40,7 +40,7 @@
|
|||||||
media="screen"
|
media="screen"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="/css/site.css?1678229090807?1678229616129?1678229646573?1678229670306?1678229728212?1678229754175?1678229784956?1678233805437"
|
href="/css/site.css?1678233952589"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
property="title"
|
property="title"
|
||||||
|
2
index.js
2
index.js
@ -40,7 +40,7 @@ fs.readFile("./index.html", function (err, data) {
|
|||||||
day: "numeric",
|
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());
|
$("link[type='text/css']").attr("href", cssurl + "?" + new Date().getTime());
|
||||||
fs.writeFile("./index.html", $.html(), (err) => {
|
fs.writeFile("./index.html", $.html(), (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user