vite.config.ts
610 Bytes
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '127.0.0.1',
port: 10012,
strictPort: true,
open: true,
hmr: true,
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment',
},
resolve: {
alias: {
'@/hr': resolve(__dirname, 'src/hr'),
'@/hro': resolve(__dirname, 'src/hro'),
'@/utils': resolve(__dirname, 'src/utils'),
'@/services': resolve(__dirname, 'src/services'),
},
},
});