From e6eedf13fe22069fb6179312f0133eac71930d1d Mon Sep 17 00:00:00 2001 From: karimalden Date: Mon, 22 Jul 2024 12:49:00 +0300 Subject: [PATCH] convert to vite --- public/index.html => index.html | 2 +- package.json | 4 ++-- vite.config.js | 11 +++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) rename public/index.html => index.html (85%) create mode 100644 vite.config.js diff --git a/public/index.html b/index.html similarity index 85% rename from public/index.html rename to index.html index b5667fe..73859f5 100644 --- a/public/index.html +++ b/index.html @@ -7,7 +7,7 @@ name="description" content="Web site created using create-react-app" /> - + Hijab - App diff --git a/package.json b/package.json index 6084c26..fc29f33 100644 --- a/package.json +++ b/package.json @@ -68,8 +68,8 @@ "zustand": "^4.4.5" }, "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", + "start": "vite --port=3000", + "build": "vite build", "test": "react-scripts test", "eject": "react-scripts eject", "g:api": "node src/Extensions/FileGenerator/generateApi.js", diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..4e690eb --- /dev/null +++ b/vite.config.js @@ -0,0 +1,11 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +export default defineConfig(() => { + return { + build: { + outDir: 'build', + }, + plugins: [react()], + }; +}); \ No newline at end of file