mirror of
https://github.com/gogs/gogs.git
synced 2026-05-28 21:30:36 +00:00
22 lines
420 B
TypeScript
22 lines
420 B
TypeScript
import path from "node:path";
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(import.meta.dirname, "src"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
},
|
|
build: {
|
|
outDir: "../public/dist",
|
|
emptyOutDir: true,
|
|
},
|
|
});
|