H
Hono2mo ago
anand248

Need to generate new css with hash to burst cache

My _renderer.tsx look as below, I wan to generate new .css each time since my css changes are not being reflected on browser - How to do that ( I am using vite)?
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="icon" href="/favicon.ico" />
{import.meta.env.PROD ? (
<link href="/static/style.css" rel="stylesheet" />
) : (
<link href="/app/style.css" rel="stylesheet" />
)}
<Script
src="/app/client.ts"
async
nonce={c.get("secureHeadersNonce")}
/>
<Style />
</head>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="icon" href="/favicon.ico" />
{import.meta.env.PROD ? (
<link href="/static/style.css" rel="stylesheet" />
) : (
<link href="/app/style.css" rel="stylesheet" />
)}
<Script
src="/app/client.ts"
async
nonce={c.get("secureHeadersNonce")}
/>
<Style />
</head>
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server