18 lines
400 B
TypeScript
18 lines
400 B
TypeScript
import { defineConfig, loadEnv } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, ".", "");
|
|
|
|
return {
|
|
base: env.VITE_BASE_PATH || "/",
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 5273,
|
|
open: true,
|
|
},
|
|
};
|
|
});
|