feat: 静态资源托管
Showing
| ... | @@ -5,7 +5,8 @@ | ... | @@ -5,7 +5,8 @@ |
| "type": "module", | "type": "module", | ||
| "scripts": { | "scripts": { | ||
| "dev": "vite", | "dev": "vite", | ||
| "build": "tsc -b && vite build", | "prebuild": "yarn install --no-optional && cd server && yarn", | ||
| "build": "tsc -b && vite build --mode production", | |||
| "lint": "eslint .", | "lint": "eslint .", | ||
| "preview": "vite preview" | "preview": "vite preview" | ||
| }, | }, | ||
| ... | @@ -36,6 +37,7 @@ | ... | @@ -36,6 +37,7 @@ |
| "typescript": "~5.7.2", | "typescript": "~5.7.2", | ||
| "unplugin-auto-import": "^19.1.2", | "unplugin-auto-import": "^19.1.2", | ||
| "vite": "^6.2.0", | "vite": "^6.2.0", | ||
| "vite-plugin-assets-sync": "^0.0.4", | |||
| "vite-plugin-pages": "^0.32.5" | "vite-plugin-pages": "^0.32.5" | ||
| } | } | ||
| } | } |
Please register or sign in to comment