vue.config.js 793 B

12345678910111213141516171819202122232425262728293031323334
  1. const path = require('path');
  2. module.exports = {
  3. publicPath: `/${process.env.VUE_APP_ROUTER}`,
  4. outputDir: 'customeruser',
  5. productionSourceMap: false,
  6. configureWebpack: (config) => {
  7. Object.assign(config, {
  8. resolve: {
  9. alias: {
  10. '@': path.resolve(__dirname, './src'),
  11. '@c': path.resolve(__dirname, './src/components'),
  12. '@a': path.resolve(__dirname, './src/assets'),
  13. },
  14. },
  15. });
  16. },
  17. devServer: {
  18. port: '8001',
  19. proxy: {
  20. '/files': {
  21. target: 'http://broadcast.waityou24.cn',
  22. },
  23. '/capi': {
  24. target: 'http://192.168.1.19:9106',
  25. changeOrigin: true,
  26. ws: false,
  27. },
  28. '/ws': {
  29. target: 'http://192.168.1.19:15674',
  30. ws: true,
  31. },
  32. },
  33. },
  34. };