vue.config.js 589 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. outputDir:"yos",
  3. lintOnSave: false,
  4. productionSourceMap:false,
  5. publicPath: './',
  6. devServer: {
  7. open: true,
  8. // host: '192.168.4.170',
  9. host: 'localhost',
  10. port: 8080,
  11. proxy: {
  12. '/apis': {
  13. // target: 'http://121.37.152.76:8080', // target host
  14. target: 'https://meida.cnyunl.com',
  15. ws: true, // proxy websockets
  16. changeOrigin: true, // needed for virtual hosted sites
  17. pathRewrite: {
  18. '^/apis': '' // rewrite path
  19. }
  20. },
  21. }
  22. }
  23. }