refactor hub dev server

- moved html replacement functionality from vite to go
This commit is contained in:
henrygd
2025-09-01 22:16:57 -04:00
parent fadfc5d81d
commit 86e87f0d47
4 changed files with 62 additions and 12 deletions

View File

@@ -3,7 +3,6 @@ import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react-swc"
import { lingui } from "@lingui/vite-plugin"
import { version } from "./package.json"
export default defineConfig({
base: "./",
@@ -13,13 +12,6 @@ export default defineConfig({
}),
lingui(),
tailwindcss(),
{
name: "replace version in index.html during dev",
apply: "serve",
transformIndexHtml(html) {
return html.replace("{{V}}", version).replace("{{HUB_URL}}", "")
},
},
],
esbuild: {
legalComments: "external",