mirror of
https://github.com/AlawnCN/opslog.git
synced 2026-09-24 06:01:12 +00:00
24 lines
519 B
TypeScript
24 lines
519 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { resolve } from "node:path";
|
|
|
|
export default defineConfig({
|
|
root: "web",
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: "../dist-web",
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(process.cwd(), "web/index.html"),
|
|
reader: resolve(process.cwd(), "web/reader.html")
|
|
}
|
|
}
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
proxy: { "/api": "http://127.0.0.1:8787" }
|
|
}
|
|
});
|