Refactor Vite configuration and add environment type definitions

- Removed local Vite config file
- Updated dev scripts to use default config
- Added env.d.ts for type definitions
- Enhanced Vite config with dynamic proxy
- Simplified build and dev script commands
This commit is contained in:
yangdx
2025-03-05 18:25:51 +08:00
parent 0ca7c0e230
commit 81b78bda76
4 changed files with 23 additions and 40 deletions

View File

@@ -4,11 +4,11 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "bunx --bun vite --config vite.config.local.js",
"dev": "bunx --bun vite",
"build": "bunx --bun vite build",
"lint": "eslint .",
"preview": "bunx --bun vite preview",
"dev-no-bun": "vite --config vite.config.local.js",
"dev-no-bun": "vite",
"build-no-bun": "vite build --emptyOutDir",
"preview-no-bun": "vite preview"
},