Signed-off-by: stroblme <stroblme@posteo.de>
This commit is contained in:
2026-08-21 15:54:34 +02:00
parent 2c7a8d3551
commit 97785ee590
3 changed files with 28 additions and 0 deletions
+1
View File
@@ -18,3 +18,4 @@ __pycache__/
# Output of `make verify` (root Makefile). # Output of `make verify` (root Makefile).
/frontend/screenshots/ /frontend/screenshots/
*.tsbuildinfo
+2
View File
@@ -0,0 +1,2 @@
declare const _default: import("vite").UserConfig;
export default _default;
+25
View File
@@ -0,0 +1,25 @@
import path from "node:path";
import tailwindcss from "@tailwindcss/vite";
import { tanstackRouter } from "@tanstack/router-plugin/vite";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
// A portal serves this bundle under a path of its own and caches one copy
// for every installation, so asset URLs have to be absolute under that
// prefix. Unset — every ordinary build — this stays "/".
base: process.env.VITE_BASE || "/",
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
plugins: [
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
react(),
tailwindcss(),
],
});