vue.config.js 872 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. outputDir:"yos",
  3. lintOnSave: false,
  4. productionSourceMap:false,
  5. publicPath: './',
  6. devServer: {
  7. headers: {
  8. 'Access-Control-Allow-Origin': '*',
  9. },
  10. open: true,
  11. // host: '192.168.4.170',
  12. host: 'localhost',
  13. port: 8000,
  14. proxy: {
  15. '/apis': {
  16. target: 'http://61.164.207.46:8000', // target host*/
  17. // target: 'http://192.168.3.9:8080', // target host*!
  18. // target: 'http://192.168.3.13:8080', // target host*!
  19. // target: 'https://oms.idcgroup.com.cn:8079/', // target host
  20. // target: 'localhost:8080', // target host
  21. ws: true, // proxy websockets
  22. changeOrigin: true, // needed for virtual hosted sites
  23. pathRewrite: {
  24. '^/apis': '' // rewrite path
  25. },
  26. },
  27. }
  28. }
  29. }