14 lines
320 B
TypeScript
14 lines
320 B
TypeScript
import react from '@vitejs/plugin-react-swc'
|
|
import {defineConfig, UserConfig} from 'vite'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(({mode}) => {
|
|
let config: UserConfig = {
|
|
plugins: [react()],
|
|
}
|
|
if (mode === 'production') {
|
|
config.base = '/hudi_services/service_web'
|
|
}
|
|
return config
|
|
})
|