Files
havenllo/web/vite.config.ts
Hermes 4797bbdef8
All checks were successful
Build and deploy Havenllo / Verify Go and frontend (push) Successful in 32s
Build and deploy Havenllo / Build and push image (push) Successful in 32s
Build and deploy Havenllo / Apply and restart Havenllo (push) Successful in 6s
ui overhaul
2026-07-14 11:24:43 -03:00

22 lines
447 B
TypeScript

import { writeFileSync } from "node:fs";
import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
const embedPlaceholder = new URL("./dist/.gitkeep", import.meta.url);
export default defineConfig({
plugins: [
preact(),
{
name: "preserve-go-embed-placeholder",
closeBundle() {
writeFileSync(embedPlaceholder, "");
}
}
],
build: {
outDir: "dist",
emptyOutDir: true
}
});