-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
37 lines (31 loc) · 760 Bytes
/
Copy pathvite.config.ts
File metadata and controls
37 lines (31 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// NightClaw — Vite config for Tauri v2 + React
// Pattern adapted from OpenMaiWaifu (github.com/buyve/OpenMaiWaifu)
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
// Vite options tailored for Tauri development
clearScreen: false,
server: {
port: 1420,
strictPort: true,
watch: {
// Tell vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},
envPrefix: ["VITE_", "TAURI_"],
build: {
outDir: "dist",
target: "esnext",
minify: "esbuild",
rollupOptions: {
output: {
manualChunks: {
three: ["three"],
vrm: ["@pixiv/three-vrm"],
},
},
},
},
});