Overview
The portfolio uses Vite as its build tool and development server. The configuration is minimal and leverages Vite’s smart defaults for optimal React development. Location:/vite.config.js
Current Configuration
Here’s the complete Vite configuration used in the project:Configuration Options
Array of Vite plugins to enable additional functionality.Currently configured with:
@vitejs/plugin-react- Official Vite plugin for React support
^5.1.1Plugin: @vitejs/plugin-react
The React plugin provides:- Fast Refresh (Hot Module Replacement for React)
- JSX/TSX transformation
- React DevTools integration
- Automatic JSX runtime
Plugin Configuration
The plugin is used with default settings. You can customize it:Common Customizations
Change Server Port
Add Path Aliases
Configure Build Output
Add Environment Variables Prefix
Enable CSS Preprocessing
Configure for Production
Available Scripts
These npm scripts use the Vite configuration:Start development server with host exposureRuns:
vite --hostBuild for productionRuns:
vite buildOutput: /dist directoryPreview production build locallyRuns:
vite previewDependencies
Vite-related packages in the project:Performance Optimization
Code Splitting
Vite automatically code-splits dynamic imports:Asset Optimization
Enable Compression
Troubleshooting
Clear Cache
Port Already in Use
Change the port invite.config.js or kill the process: