chore: 增加打包命令
This commit is contained in:
parent
a67eebe490
commit
faf6aae87f
19
apps/web-tdesign/.env.pre
Normal file
19
apps/web-tdesign/.env.pre
Normal 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
|
||||||
@ -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",
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user