This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
In your project directory, you can run:
# Starts development server with Hot Module Replacement (HMR)
"dev": "vite",
# Builds production-optimized bundle for deployment
"build": "vite build",
# Lints code using ESLint rules
"lint": "eslint .",
# Previews production build locally before deployment
"preview": "vite preview"
dev
: Development server with instant updatespreview
: Production preview of built assetsbuild
before preview
to test latest changesnpm run dev
npm run lint
npm run build && npm run preview