This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
npm install
- install all dependencies into the project.
npm run dev
- run the application.
- please read this doc for more detail link
npm run build
- the output will be stored at "disk" folder.
npm run build
, then npm run preview
- The vite preview command will boot up a local static web server that serves the files from dist at http://localhost:4173. It's an easy way to check if the production build looks OK in your local environment.