From e54e9986ed01ab3de1b08a515b1c6e8391202179 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Sat, 27 Oct 2018 18:48:22 +0800 Subject: [PATCH] no message Former-commit-id: 66b4905a8567bb137d8a5640e80684b2a779beb7 [formerly 66b4905a8567bb137d8a5640e80684b2a779beb7 [formerly 66b4905a8567bb137d8a5640e80684b2a779beb7 [formerly 66b4905a8567bb137d8a5640e80684b2a779beb7 [formerly 0000680fe8801aa36a2bd1b54d2c1c29a860626b [formerly 929a9eae654c20e963b100708fb0e05f55417ef0]]]]] Former-commit-id: 092bf114109f5da2e811cb019c92e0b6c17aafec Former-commit-id: bc7e73e8d149e89b0d695c43cff4f47047313ef3 Former-commit-id: d25fb496b217b9dcd6b6732694770bd8ad885c58 [formerly 5daca6a294efa6b92c0022b3fb34ff4bdf5c2e61] Former-commit-id: 8b4b2a273a0fc0aa213b9eaeef5f3b207a62f5b0 Former-commit-id: 366b34473e84faf3a8f0f72eb767543216e768cb Former-commit-id: 282a43b5bd2f8a5b27bbb47b38c230bcdf0264f5 Former-commit-id: a54ceae1feb93c4c836040048e9a5041e2df2ffa Former-commit-id: 821ca6ab33f4429b2e2877602ab7539db2b7ffa7 --- .env.travis | 7 ++++++- vue.config.js | 8 +------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.env.travis b/.env.travis index ca6d2a3f..1598cdc9 100644 --- a/.env.travis +++ b/.env.travis @@ -1,5 +1,10 @@ # travis +# 指定构建模式 NODE_ENV=production -VUE_APP_TRAVIS=TRUE +# 标记当前是 CI 自动构建 +VUE_APP_BUILD_MODE=TRAVIS + +# 页面 title 前缀 +VUE_APP_TITLE=D2Admin Preview diff --git a/vue.config.js b/vue.config.js index 09310336..aa5136af 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,14 +1,8 @@ -const path = require('path') - // 拼接路径 -function resolve (dir) { - return path.join(__dirname, dir) -} +const resolve = dir => require('path').join(__dirname, dir) // 基础路径 注意发布之前要先修改这里 let baseUrl = '/' -// 演示项目自动构建使用 -if (process.env.VUE_APP_TRAVIS === 'TRUE') baseUrl = '/' module.exports = { baseUrl: baseUrl, // 根据你的实际情况更改这里