| | |
| | | const { defineConfig } = require('@vue/cli-service'); |
| | | const buildConfig ={outputDir:"dist", publicPath:"./", assetsDir:"static"}; |
| | | const path=require("path"); |
| | | const config={ |
| | | configureWebpack:{ |
| | | resolve: { |
| | | alias: { |
| | | '@': path.join(__dirname,'./src') |
| | | } |
| | | } |
| | | }, |
| | | transpileDependencies: true, |
| | | devServer:{ |
| | | host:"localhost", |
| | |
| | | } |
| | | }, |
| | | proxy:{ |
| | | // "/api/base": { |
| | | // target: 'http://aps.fai365.com:9080', |
| | | // //注: 暂时使用====用戶权限,角色暂时用的环境 |
| | | // // target: "http://192.168.20.119:8011", |
| | | // changeOrigin: true, |
| | | // }, |
| | | [process.env.VUE_APP_BASE_API]:{ |
| | | target: process.env.VUE_APP_BASE_URL, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^'+process.env.VUE_APP_BASE_API]: '' |
| | | } |
| | | } |
| | | } |
| | | } |