Commit bfe59ab4 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/migrate/vite' into 'main'

migrate vite

See merge request !2
parents eb1a5934 6646fe17
Pipeline #17217 passed with stage
in 48 seconds
......@@ -11,6 +11,7 @@
# production
/build
/builds
/dist
# misc
.DS_Store
......
<!DOCTYPE html>
<html lang="en">
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
This diff is collapsed.
......@@ -15,15 +15,16 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.0",
"react-scripts": "^2.1.3",
"react-scripts": "^5.0.1",
"socket.io-client": "^4.5.1",
"three": "^0.145.0",
"typescript": "^4.7.4",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
......@@ -47,6 +48,8 @@
},
"devDependencies": {
"@types/google-protobuf": "^3.15.6",
"@types/three": "^0.144.0"
"@types/three": "^0.144.0",
"@vitejs/plugin-react": "^2.1.0",
"vite": "^3.1.0"
}
}
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment