vue.config.js 537 B

123456789101112131415161718192021
  1. const { defineConfig } = require('@vue/cli-service')
  2. const port = 9010
  3. const name = '贵州退役军人教育培训'
  4. module.exports = defineConfig({
  5. transpileDependencies: true,
  6. lintOnSave: false,
  7. devServer: {
  8. host: '0.0.0.0',
  9. port,
  10. proxy: {
  11. // 开发模式请求基础api反代理
  12. [process.env.VUE_APP_BASE_API]: {
  13. target: `https://wx.hw.hongweisoft.com/veterans`,
  14. changeOrigin: true,
  15. pathRewrite: {
  16. ['^' + process.env.VUE_APP_BASE_API]: ''
  17. }
  18. }
  19. }
  20. }
  21. })