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
|
*.local
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
.parcel-cache
|
|
||||||
src-tauri/sidebar
|
src-tauri/sidebar
|
||||||
|
20
package.json
20
package.json
@ -2,16 +2,17 @@
|
|||||||
"name": "clash-verge",
|
"name": "clash-verge",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tauri dev",
|
"dev": "cargo tauri dev",
|
||||||
"build": "tauri build",
|
"build": "cargo tauri build",
|
||||||
"web:dev": "parcel src/index.html -p 3000",
|
"web:dev": "vite",
|
||||||
"web:build": "parcel build",
|
"web:build": "tsc && vite build",
|
||||||
"tauri": "tauri"
|
"web:serve": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.7.0",
|
"@emotion/react": "^11.7.0",
|
||||||
"@emotion/styled": "^11.6.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",
|
"@tauri-apps/api": "^1.0.0-beta.8",
|
||||||
"axios": "^0.24.0",
|
"axios": "^0.24.0",
|
||||||
"react": "^17.0.0",
|
"react": "^17.0.0",
|
||||||
@ -19,12 +20,11 @@
|
|||||||
"react-router-dom": "^6.0.2"
|
"react-router-dom": "^6.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-sass": "^2.0.1",
|
|
||||||
"@tauri-apps/cli": "^1.0.0-beta.10",
|
|
||||||
"@types/react": "^17.0.0",
|
"@types/react": "^17.0.0",
|
||||||
"@types/react-dom": "^17.0.0",
|
"@types/react-dom": "^17.0.0",
|
||||||
"parcel": "^2.0.1",
|
"@vitejs/plugin-react": "^1.1.1",
|
||||||
"sass": "^1.44.0",
|
"sass": "^1.44.0",
|
||||||
"typescript": "^4.5.2"
|
"typescript": "^4.5.2",
|
||||||
|
"vite": "^2.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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>
|
<title>Clash Verge</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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