bust cache on css on builds
This commit is contained in:
parent
e2bd35acba
commit
d2860a705e
20
index.html
20
index.html
@ -29,7 +29,7 @@
|
|||||||
media="screen"
|
media="screen"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="/css/site.css"
|
href="/css/site.css?1647787377775"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
property="title"
|
property="title"
|
||||||
@ -133,7 +133,7 @@
|
|||||||
<p>
|
<p>
|
||||||
There are currently <span id="storeCount">96</span> stores indexed
|
There are currently <span id="storeCount">96</span> stores indexed
|
||||||
on this page. Last updated
|
on this page. Last updated
|
||||||
<span id="updatedOn">March 19, 2022</span>.
|
<span id="updatedOn">March 20, 2022</span>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="selected"></div>
|
<div id="selected"></div>
|
||||||
@ -186,8 +186,12 @@
|
|||||||
<td>867 Broadway, Brooklyn</td>
|
<td>867 Broadway, Brooklyn</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
<td class="name">Bluestockings</td>
|
<td class="name">Better Read Than Dead & Burly Coffee</td>
|
||||||
<td>172 Allen Street, New York</td>
|
<td>90 Kosciuszko St, Brooklyn</td>
|
||||||
|
</tr>
|
||||||
|
<tr id="" class="spotRow">
|
||||||
|
<td class="name">Bluestockings Cooperative</td>
|
||||||
|
<td>116 Suffolk Street, New York</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
<td class="name">Bonnie Slotnick Cookbooks</td>
|
<td class="name">Bonnie Slotnick Cookbooks</td>
|
||||||
@ -286,9 +290,7 @@
|
|||||||
<td>99 St. Mark's Place, New York</td>
|
<td>99 St. Mark's Place, New York</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
<td class="name">
|
<td class="name">ETG Book Cafe</td>
|
||||||
Every Thing Goes Book Cafe and Neighborhood Stage
|
|
||||||
</td>
|
|
||||||
<td>208 Bay St, Staten Island</td>
|
<td>208 Bay St, Staten Island</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
@ -397,10 +399,6 @@
|
|||||||
<td class="name">Posman Books Chelsea Market</td>
|
<td class="name">Posman Books Chelsea Market</td>
|
||||||
<td>75 9th Avenue, New York</td>
|
<td>75 9th Avenue, New York</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="" class="spotRow">
|
|
||||||
<td class="name">Posman Books Rockefeller Center</td>
|
|
||||||
<td>30 Rockefeller Plaza, New York</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="" class="spotRow">
|
<tr id="" class="spotRow">
|
||||||
<td class="name">PowerHouse Arena</td>
|
<td class="name">PowerHouse Arena</td>
|
||||||
<td>28 Adams St, Brooklyn</td>
|
<td>28 Adams St, Brooklyn</td>
|
||||||
|
3
index.js
3
index.js
@ -24,7 +24,8 @@ fs.readFile("./index.html", function (err, data) {
|
|||||||
day: "numeric",
|
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) => {
|
fs.writeFile("./index.html", $.html(), (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log("Default view updated.");
|
console.log("Default view updated.");
|
||||||
|
Loading…
Reference in New Issue
Block a user