feat: basic setup for web with tailwind and routing

This commit is contained in:
2025-05-20 19:39:55 +02:00
parent ac07b5d723
commit afc9208269
17 changed files with 1647 additions and 256 deletions

View File

@ -1,17 +1,19 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { resolve } from "path";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), tailwindcss()],
build: {
outDir: "../dist",
emptyOutDir: true,
},
// resolve: {
// alias: {
// "@": resolve(__dirname, "src"),
// },
// },
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
base: "/",
});