feat: use vite for faster build

This commit is contained in:
ckt1031
2023-07-31 22:17:07 +08:00
parent 30a7f1a1c7
commit 0a4b4316c8
3 changed files with 30 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@vitejs/plugin-react": "^4.0.3",
"axios": "^0.27.2",
"history": "^5.3.0",
"marked": "^4.1.1",
@@ -10,17 +11,16 @@
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"react-toastify": "^9.0.8",
"react-turnstile": "^1.0.5",
"semantic-ui-css": "^2.5.0",
"semantic-ui-react": "^2.1.3"
"semantic-ui-react": "^2.1.3",
"vite": "^4.4.7",
"vite-plugin-env-compatible": "^1.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"start": "vite preview",
"build": "vite build"
},
"eslintConfig": {
"extends": [