Spaces:
Sleeping
Sleeping
File size: 479 Bytes
fd52f31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
watch: {
usePolling: true,
interval: 500
},
hmr: {
overlay: true,
port: 5173,
host: 'localhost'
},
host: true, // Listen on all addresses
port: 5173,
strictPort: true // Fail if port is in use
},
optimizeDeps: {
include: ['react', 'react-dom', 'react-icons']
}
})
|