vue.config.js 540 B

1234567891011121314151617181920212223
  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. ws: true, // proxy websockets
  15. changeOrigin: true, // needed for virtual hosted sites
  16. pathRewrite: {
  17. '^/apis': '' // rewrite path
  18. }
  19. },
  20. }
  21. }
  22. }