chore: 增加打包命令

This commit is contained in:
cnb.aUOqoEV4wEA 2025-11-11 19:36:51 +08:00
parent a67eebe490
commit faf6aae87f
3 changed files with 23 additions and 0 deletions

19
apps/web-tdesign/.env.pre Normal file
View File

@ -0,0 +1,19 @@
VITE_BASE=/pre/
# 接口地址
VITE_GLOB_API_URL=https://hub.risenstars.com/pre-api
# 是否开启压缩,可以设置为 none, brotli, gzip
VITE_COMPRESS=gzip
# 是否开启 PWA
VITE_PWA=false
# vue-router 的模式
VITE_ROUTER_HISTORY=history
# 是否注入全局loading
VITE_INJECT_APP_LOADING=true
# 打包后是否生成dist.zip
VITE_ARCHIVER=false

View File

@ -17,6 +17,8 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build --mode production", "build": "pnpm vite build --mode production",
"build:pre": "pnpm vite build --mode pre",
"build:prod": "pnpm vite build --mode production",
"build:analyze": "pnpm vite build --mode analyze", "build:analyze": "pnpm vite build --mode analyze",
"dev": "pnpm vite --mode development", "dev": "pnpm vite --mode development",
"preview": "vite preview", "preview": "vite preview",

View File

@ -33,6 +33,8 @@
"build:ele": "pnpm run build --filter=@vben/web-ele", "build:ele": "pnpm run build --filter=@vben/web-ele",
"build:naive": "pnpm run build --filter=@vben/web-naive", "build:naive": "pnpm run build --filter=@vben/web-naive",
"build:tdesign": "pnpm run build --filter=@vben/web-tdesign", "build:tdesign": "pnpm run build --filter=@vben/web-tdesign",
"build:tdesign:pre": "pnpm -F @vben/web-tdesign run build:pre",
"build:tdesign:prod": "pnpm -F @vben/web-tdesign run build:prod"
"build:play": "pnpm run build --filter=@vben/playground", "build:play": "pnpm run build --filter=@vben/playground",
"changeset": "pnpm exec changeset", "changeset": "pnpm exec changeset",
"check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell", "check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell",