From ae6d20ec4a30b7e796feb05958bcfc80e55f247b Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 20 七月 2023 15:21:45 +0800 Subject: [PATCH] 整合代码部署 --- Source/UBCS-WEB/dist/vue.config.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/vue.config.js b/Source/UBCS-WEB/dist/vue.config.js new file mode 100644 index 0000000..33c19cd --- /dev/null +++ b/Source/UBCS-WEB/dist/vue.config.js @@ -0,0 +1,40 @@ +module.exports = { + //璺緞鍓嶇紑 + publicPath: "/", + lintOnSave: true, + productionSourceMap: false, + chainWebpack: (config) => { + //蹇界暐鐨勬墦鍖呮枃浠� + config.externals({ + 'vue': 'Vue', + 'vue-router': 'VueRouter', + 'vuex': 'Vuex', + 'axios': 'axios', + 'element-ui': 'ELEMENT', + }); + const entry = config.entry('app'); + entry.add('babel-polyfill').end(); + entry.add('classlist-polyfill').end(); + entry.add('@/mock').end(); + }, + css: { + extract: { ignoreOrder: true } + }, + //寮�鍙戞ā寮忓弽鍚戜唬鐞嗛厤缃紝鐢熶骇妯″紡璇蜂娇鐢∟ginx閮ㄧ讲骞堕厤缃弽鍚戜唬鐞� + devServer: { + port: 38000, + proxy: { + '/api': { + //鏈湴鏈嶅姟鎺ュ彛鍦板潃 + target: 'http://192.168.0.106:37000', + // target: 'http://dev.vci-tech.com:37000', + //杩滅▼婕旂ず鏈嶅姟鍦板潃,鍙敤浜庣洿鎺ュ惎鍔ㄩ」鐩� + //target: 'https://saber.bladex.vip/api', + ws: true, + pathRewrite: { + '^/api': '/' + } + } + } + } +}; -- Gitblit v1.9.3