1234567891011121314151617181920212223242526
  1. module.exports = {
  2. publicPath: './',
  3. devServer: {
  4. proxy: {
  5. '/api': {
  6. target: 'http://localhost:8080',
  7. changeOrigin: true,
  8. pathRewrite: {
  9. '^/api': '/'
  10. },
  11. },
  12. '/api/websocket': {
  13. target: 'ws://localhost:8080',
  14. changeOrigin: true,
  15. ws: true,
  16. pathRewrite: {
  17. '^/api': '/'
  18. },
  19. },
  20. }
  21. },
  22. transpileDependencies: [
  23. 'vue-echarts',
  24. 'resize-detector'
  25. ]
  26. }