24 lines
494 B
TypeScript
24 lines
494 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { resolve } from "node:path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
clearScreen: false,
|
|
server: {
|
|
strictPort: true,
|
|
host: "127.0.0.1",
|
|
port: 1420,
|
|
},
|
|
envPrefix: ["VITE_", "TAURI_"],
|
|
build: {
|
|
target: "es2022",
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, "index.html"),
|
|
badge: resolve(__dirname, "badge.html"),
|
|
},
|
|
},
|
|
},
|
|
});
|