You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

/*
* @Author: 1036896656@qq.com 1036896656@qq.com
* @Date: 2023-08-04 11:13:12
* @LastEditors: 1036896656@qq.com 1036896656@qq.com
11 months ago
* @LastEditTime: 2023-11-27 17:28:50
* @FilePath: \agile-portal-ui\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const { defineConfig } = require("@vue/cli-service");
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
11 months ago
host: '130.252.102.225',
port: 8088,
open: true,
client: {
overlay: false
},
proxy: {
[process.env.VUE_APP_BASE_API]: {
11 months ago
target: `http://172.16.12.107:18081/`,
11 months ago
//target: `http://130.252.101.48:18081/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
}
},
11 months ago
publicPath: process.env.NODE_ENV === "production" ? "./" : "/", // 指定公共路径为"/public/"
outputDir: 'dist',
11 months ago
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false
});