/* * @Author: 1036896656@qq.com 1036896656@qq.com * @Date: 2023-08-04 11:13:12 * @LastEditors: 1036896656@qq.com 1036896656@qq.com * @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: { host: '130.252.102.225', port: 8088, open: true, client: { overlay: false }, proxy: { [process.env.VUE_APP_BASE_API]: { target: `http://172.16.12.107:18081/`, //target: `http://130.252.101.48:18081/`, 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 });