convert to vite

This commit is contained in:
karimalden 2024-07-22 12:49:00 +03:00
parent 37ba470868
commit e6eedf13fe
3 changed files with 14 additions and 3 deletions

View File

@ -7,7 +7,7 @@
name="description" name="description"
content="Web site created using create-react-app" content="Web site created using create-react-app"
/> />
<script type="module" src="/src/index.tsx"></script>
<title>Hijab - App</title> <title>Hijab - App</title>
</head> </head>
<body> <body>

View File

@ -68,8 +68,8 @@
"zustand": "^4.4.5" "zustand": "^4.4.5"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "vite --port=3000",
"build": "react-scripts build", "build": "vite build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"g:api": "node src/Extensions/FileGenerator/generateApi.js", "g:api": "node src/Extensions/FileGenerator/generateApi.js",

11
vite.config.js Normal file
View File

@ -0,0 +1,11 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(() => {
return {
build: {
outDir: 'build',
},
plugins: [react()],
};
});