Files
stockhome/backend/vite.config.ts
T
theis.gaedigk 6be34c93aa refactor: edit tailwindcss classes and change code formatting, therefore added .prettierrc file
fix: frontend bug where the passwords won't be checked when the password is changed
2026-07-08 14:56:43 +02:00

30 lines
660 B
TypeScript

import { defineConfig } from "vite";
import path from "path";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
root: "src",
build: {
outDir: "../dist",
emptyOutDir: true,
sourcemap: true,
minify: "esbuild",
assetsDir: "assets",
rollupOptions: {
input: path.resolve(__dirname, "src/index.html"),
output: {
assetFileNames: "assets/[name]-[hash][extname]",
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
});