chore: 统一升级 vite 依赖,增加预发布构建指令
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
"typescript": "~5.6.3",
|
||||
"unocss": "^65.5.0",
|
||||
"unplugin-vue-components": "~0.27.5",
|
||||
"vite": "~6.1.1",
|
||||
"vite": "~6.2.0",
|
||||
"vite-plugin-checker": "~0.8.0",
|
||||
"vite-plugin-inspect": "^10.2.1",
|
||||
"vite-plugin-mkcert": "^1.17.6",
|
||||
|
||||
@@ -4,5 +4,8 @@ VITE_NODE_ENV = 'staging'
|
||||
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
|
||||
VITE_BASE_URL = /
|
||||
|
||||
# 端口
|
||||
VITE_PORT = 10010
|
||||
|
||||
# base api url
|
||||
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
|
||||
@@ -6,6 +6,7 @@
|
||||
"dev": "farm dev --mode development",
|
||||
"start": "farm start --mode production",
|
||||
"build": "farm build --mode production",
|
||||
"build:staging": "farm build --mode staging",
|
||||
"preview": "farm preview",
|
||||
"clean:lock": "rimraf pnpm-lock.yaml && rimraf package.lock.json",
|
||||
"clean:lib": "rimraf node_modules",
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
VITE_NODE_ENV = pre
|
||||
VITE_NODE_ENV = staging
|
||||
|
||||
VITE_PORT = 10012
|
||||
|
||||
VITE_OA_BASEURL = https://oa-pre.shiyue.com
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "cross-env farm start --mode development",
|
||||
"build": "cross-env farm build --mode production",
|
||||
"build:pre": "cross-env farm build --mode staging",
|
||||
"build:staging": "cross-env farm build --mode staging",
|
||||
"preview": "cross-env farm preview",
|
||||
"clean": "rimraf node_modules"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user