2025-08-30 18:34:50 +05:30
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import react from '@vitejs/plugin-react-swc';
|
|
|
|
|
import path from 'path';
|
2025-04-15 16:28:03 +05:30
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
2025-09-01 16:59:40 +05:30
|
|
|
export default defineConfig(() => ({
|
2025-04-15 16:28:03 +05:30
|
|
|
server: {
|
2025-08-30 18:34:50 +05:30
|
|
|
host: '::',
|
2025-04-15 16:28:03 +05:30
|
|
|
port: 8080,
|
|
|
|
|
},
|
2025-09-01 16:59:40 +05:30
|
|
|
plugins: [react()],
|
2025-04-15 16:28:03 +05:30
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2025-08-30 18:34:50 +05:30
|
|
|
'@': path.resolve(__dirname, './src'),
|
2025-04-15 16:28:03 +05:30
|
|
|
},
|
|
|
|
|
},
|
2025-04-22 10:53:14 +05:30
|
|
|
build: {
|
|
|
|
|
target: 'es2022',
|
2025-08-30 18:34:50 +05:30
|
|
|
},
|
2025-04-15 16:28:03 +05:30
|
|
|
}));
|