import {defineConfig} from 'vite' import react from '@vitejs/plugin-react' import * as path from "path"; // https://vitejs.dev/config/ export default defineConfig(({mode}) => { return { plugins: [react()], base: mode == 'test' ? './' : '/', define: { APP_DEFAULT_PATH: JSON.stringify('/') }, resolve: { alias: { '@': path.resolve(__dirname, './src') } } } })