w-aura/vite.config.ts
Денис Катаев 37f826c109 AW-33
2024-04-18 16:31:58 +00:00

23 lines
457 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import * as path from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }],
},
server: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
hmr: {
protocol: 'ws',
port: 5174,
clientPort: 5174,
host: 'localhost',
path: '/hmr/',
},
},
})