version bundled js
This commit is contained in:
parent
062640c390
commit
ff88168e63
|
|
@ -1,4 +1,5 @@
|
|||
import type { FC } from "hono/jsx"
|
||||
import { GIT_SHA } from "../config"
|
||||
|
||||
export const Layout: FC = async ({ children, title }) => (
|
||||
<html lang="en">
|
||||
|
|
@ -12,7 +13,7 @@ export const Layout: FC = async ({ children, title }) => (
|
|||
<link href="/css/game.css" rel="stylesheet" />
|
||||
|
||||
<script type="importmap" dangerouslySetInnerHTML={{ __html: `{ "imports": { "@/": "/" } }` }} />
|
||||
<script src={process.env.NODE_ENV === "production" ? "/bundle.js" : "/js/main.js"} type="module" async></script>
|
||||
<script src={process.env.NODE_ENV === "production" ? `/bundle.js?${GIT_SHA}` : "/js/main.js"} type="module" async></script>
|
||||
</head>
|
||||
<body data-mode="tall">
|
||||
<main>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user