mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
feat: use vite
This commit is contained in:
parent
f320d515d5
commit
efc1669b3e
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,5 +5,4 @@ dist-ssr
|
|||
*.local
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
.parcel-cache
|
||||
src-tauri/sidebar
|
||||
|
|
20
package.json
20
package.json
|
@ -2,16 +2,17 @@
|
|||
"name": "clash-verge",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "tauri dev",
|
||||
"build": "tauri build",
|
||||
"web:dev": "parcel src/index.html -p 3000",
|
||||
"web:build": "parcel build",
|
||||
"tauri": "tauri"
|
||||
"dev": "cargo tauri dev",
|
||||
"build": "cargo tauri build",
|
||||
"web:dev": "vite",
|
||||
"web:build": "tsc && vite build",
|
||||
"web:serve": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.7.0",
|
||||
"@emotion/styled": "^11.6.0",
|
||||
"@material-ui/core": "^5.0.0-beta.5",
|
||||
"@mui/icons-material": "^5.2.1",
|
||||
"@mui/material": "^5.2.3",
|
||||
"@tauri-apps/api": "^1.0.0-beta.8",
|
||||
"axios": "^0.24.0",
|
||||
"react": "^17.0.0",
|
||||
|
@ -19,12 +20,11 @@
|
|||
"react-router-dom": "^6.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@parcel/transformer-sass": "^2.0.1",
|
||||
"@tauri-apps/cli": "^1.0.0-beta.10",
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"parcel": "^2.0.1",
|
||||
"@vitejs/plugin-react": "^1.1.1",
|
||||
"sass": "^1.44.0",
|
||||
"typescript": "^4.5.2"
|
||||
"typescript": "^4.5.2",
|
||||
"vite": "^2.7.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
||||
/>
|
||||
<title>Clash Verge</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
8
vite.config.ts
Normal file
8
vite.config.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
root: "src",
|
||||
plugins: [react()],
|
||||
});
|
Loading…
Reference in New Issue
Block a user