Commit 655d5803 authored by chechunchi's avatar chechunchi

migrate vite

parent eb1a5934
Pipeline #17212 failed with stage
in 2 minutes and 10 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.
......@@ -22,8 +22,9 @@
"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