Files
koring-launcher/vite.config.ts
T
2026-07-11 23:33:44 +08:00

32 lines
687 B
TypeScript

import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import pkg from "./package.json";
export default defineConfig(async () => ({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
base: "./",
build: {
rollupOptions: {
input: {
main: path.resolve(__dirname, "index.html"),
splash: path.resolve(__dirname, "splash.html"),
},
},
},
clearScreen: false,
server: {
port: 1420,
strictPort: true,
},
}));