From 18997e6de96f7be5b55a94168c80103e6363cb0e Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 12 七月 2023 20:24:53 +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