From 2b506494d7c73a3978004bd0b32a5d0783b25efa Mon Sep 17 00:00:00 2001 From: wang-hao-jie <1550036656@qq.com> Date: 星期四, 25 八月 2022 18:00:28 +0800 Subject: [PATCH] 默认更改列表 --- vue.config.js | 62 +++++++++++++++++-------------- 1 files changed, 34 insertions(+), 28 deletions(-) diff --git a/vue.config.js b/vue.config.js index f7124b6..c2d642c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,44 +6,50 @@ port: 9999, proxy: { '/xboot': { - target: 'http://127.0.0.1:8888', // 璇锋眰鏈湴 闇�瑕亁boot鍚庣椤圭洰 - ws: true + target: 'http://127.0.0.1:9091', // 璇锋眰鏈湴 闇�瑕亁boot鍚庣椤圭洰 + //target: 'http://192.168.0.162:8888', // 璇锋眰鏈湴 闇�瑕亁boot鍚庣椤圭洰 + //target: 'http://111.63.178.115:9091', + ws: true, + changeOrigin:true, + pathRewrite:{ + '/api':'' + } }, '/foo': { target: '<other_url>' } - } + }, }, // 鎵撳寘鏃朵笉鐢熸垚.map鏂囦欢 閬垮厤鐪嬪埌婧愮爜 productionSourceMap: false, // 閮ㄧ讲浼樺寲 configureWebpack: { // 浣跨敤CDN - externals: { - vue: 'Vue', - 'vue-i18n': 'VueI18n', - axios: 'axios', - 'vue-router': 'VueRouter', - vuex: 'Vuex', - 'view-design': 'iview', - echarts: 'echarts', - apexcharts: 'ApexCharts', - 'vue-apexcharts': 'VueApexCharts', - xlsx: 'XLSX', - dplayer: 'DPlayer', - 'print-js': 'printJS', - html2canvas: 'html2canvas', - 'vue-json-pretty': 'VueJsonPretty', - 'vue-lazyload': 'VueLazyload', - gitalk: 'Gitalk', - 'js-cookie': 'Cookies', - wangEditor: 'wangEditor', - quill: 'Quill', - stompjs: 'Stomp', - 'sockjs-client': 'SockJS', - vuedraggable: 'vuedraggable', - viewerjs: 'Viewer' - }, + // externals: { + // vue: 'Vue', + // 'vue-i18n': 'VueI18n', + // axios: 'axios', + // 'vue-router': 'VueRouter', + // vuex: 'Vuex', + // 'view-design': 'iview', + // echarts: 'echarts', + // apexcharts: 'ApexCharts', + // 'vue-apexcharts': 'VueApexCharts', + // xlsx: 'XLSX', + // dplayer: 'DPlayer', + // 'print-js': 'printJS', + // html2canvas: 'html2canvas', + // 'vue-json-pretty': 'VueJsonPretty', + // 'vue-lazyload': 'VueLazyload', + // gitalk: 'Gitalk', + // 'js-cookie': 'Cookies', + // wangEditor: 'wangEditor', + // quill: 'Quill', + // stompjs: 'Stomp', + // 'sockjs-client': 'SockJS', + // vuedraggable: 'vuedraggable', + // viewerjs: 'Viewer' + // }, plugins: [ // GZIP鍘嬬缉 new CompressionPlugin({ -- Gitblit v1.9.1