From 7b7ab86598f7147e1c887dd4a04c3a22c64c5c36 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 25 Mar 2024 08:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 11 +++++++++++ package.json | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .env.test diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..2c44f1d --- /dev/null +++ b/.env.test @@ -0,0 +1,11 @@ + +# 页面标题 +VUE_APP_TITLE = 闻荫管理系统 +# 开发环境配置 +NODE_ENV = production + +# 测试环境配置 +ENV = 'test' + +# 闻荫管理系统/测试环境 +VUE_APP_BASE_API = 'http://dev.ccwin-in.com:25204/api/admin-api' \ No newline at end of file diff --git a/package.json b/package.json index b8b8cfd..be92f21 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "license": "MIT", "scripts": { "dev": "vue-cli-service serve", - "build:stage": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging", + "test": "vue-cli-service build --mode test", + "prod": "vue-cli-service build --mode production", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src" },