A photo manager for VRChat.
at main 714 B view raw
1import { defineConfig, Plugin } from "vite"; 2import solid from "vite-plugin-solid"; 3 4const fullReloadAlways: Plugin = { 5 name: 'full-reload', 6 handleHotUpdate({ server }) { 7 server.ws.send({ type: "full-reload" }); 8 return []; 9 }, 10}; 11 12// https://vitejs.dev/config/ 13export default defineConfig(async () => ({ 14 plugins: [solid(), fullReloadAlways], 15 16 // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` 17 // 18 // 1. prevent vite from obscuring rust errors 19 clearScreen: false, 20 // 2. tauri expects a fixed port, fail if that port is not available 21 server: { 22 port: 1420, 23 strictPort: true, 24 watch: { 25 ignored: [ 'src-tauri/**' ] 26 } 27 } 28}));