vue.config.js 795 B

12345678910111213141516171819202122232425262728293031
  1. const path = require('path');
  2. const common = path.resolve(__dirname, '../common');
  3. module.exports = {
  4. outputDir: `pweb`,
  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. '@common': common,
  14. },
  15. },
  16. });
  17. },
  18. devServer: {
  19. port: '8001',
  20. proxy: {
  21. '/files': {
  22. target: 'http://broadcast.waityou24.cn',
  23. },
  24. '/projectadmin/api': {
  25. target: 'http://www.freeskyghw.cn', //http://127.0.0.1:10102 http://www.freeskyghw.cn
  26. changeOrigin: true,
  27. ws: false,
  28. },
  29. },
  30. },
  31. };