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.
|
|
|
/*
|
|
|
|
* @Author: 1036896656@qq.com 1036896656@qq.com
|
|
|
|
* @Date: 2023-08-04 11:13:12
|
|
|
|
* @LastEditors: 1036896656@qq.com 1036896656@qq.com
|
|
|
|
* @LastEditTime: 2024-03-21 14:08:07
|
|
|
|
* @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: {
|
|
|
|
host: '0.0.0.0',
|
|
|
|
port: 8088,
|
|
|
|
open: true,
|
|
|
|
client: {
|
|
|
|
overlay: false
|
|
|
|
},
|
|
|
|
proxy: {
|
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
|
// target: `http://172.16.12.107:18081/public/`,
|
|
|
|
target: `http://130.252.101.48:18081/public/`,
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
publicPath: process.env.NODE_ENV === "production" ? "./" : "/", // 指定公共路径为"/public/"
|
|
|
|
outputDir: 'dist',
|
|
|
|
assetsDir: 'static',
|
|
|
|
lintOnSave: process.env.NODE_ENV === 'development',
|
|
|
|
productionSourceMap: false
|
|
|
|
});
|