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" },