feat: initialize React client with Vite setup
- Added package.json with dependencies for React, Vite, TypeScript, and ESLint. - Included Vite logo SVG and React logo SVG in the public and assets directories respectively. - Created main application component (App.tsx) with basic structure and state management. - Added global styles in index.css and component-specific styles in App.css. - Configured TypeScript with tsconfig files for app and node environments. - Set up Vite configuration for development server with specified host and port.
This commit is contained in:
14
client/vite.config.ts
Normal file
14
client/vite.config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 5001,
|
||||
watch: {
|
||||
usePolling: true,
|
||||
},
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user