Skip to content

Instantly share code, notes, and snippets.

@facundo-moran
Created January 16, 2024 17:30
Show Gist options
  • Save facundo-moran/e216364395b5733750e232b4ca568ab4 to your computer and use it in GitHub Desktop.
Save facundo-moran/e216364395b5733750e232b4ca568ab4 to your computer and use it in GitHub Desktop.
ViteJS config para hot reloading en contenedor docker
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
watch: {
usePolling: true,
},
host: true,
strictPort: true,
port: 5173,
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment