Skip to content

Commit

Permalink
migrated from CRA to vite (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammaji committed Mar 9, 2023
1 parent 9b42c6c commit c430d80
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 9,124 deletions.
5 changes: 4 additions & 1 deletion public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Swapnoneel</title>
<link rel="icon" href="./logo.png">
<link rel="icon" href="/logo.png">
</head>
<body>
<div id="root"></div>

<!-- this is the entry point -->
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
24 changes: 8 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,21 @@
"private": true,
"dependencies": {
"@emailjs/browser": "^3.6.2",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@vitejs/plugin-react": "^3.1.0",
"axios": "^0.27.2",
"framer-motion": "^6.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.4.0",
"react-scripts": "5.0.1",
"react-tabs": "^5.1.0",
"react-toastify": "^9.0.7",
"swiper": "^8.3.1",
"use-local-storage": "^2.3.6",
"web-vitals": "^2.1.0"
"use-local-storage": "^2.3.6"
},
"scripts": {
"dev": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"browserslist": {
"production": [
Expand All @@ -42,5 +31,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"vite": "^4.1.4"
}
}
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
Loading

0 comments on commit c430d80

Please sign in to comment.