Add dev build script and improve Vite config

Introduces a 'build:shell:dev' script for development builds and updates napcat-shell's Vite config to conditionally enable source maps in development mode. This enhances build flexibility for development and production environments.
This commit is contained in:
手瓜一十雪
2025-11-14 21:25:29 +08:00
parent 66d02eeb6a
commit a2a73ce2dd
3 changed files with 11 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
"main": "index.ts",
"scripts": {
"build": "vite build",
"build:dev": "vite build --mode development",
"typecheck": "tsc --noEmit --skipLibCheck -p tsconfig.json"
},
"exports": {