vue.config.js 695 B

123456789101112131415161718192021222324252627282930
  1. const path = require('path');
  2. module.exports = {
  3. publicPath: `/${process.env.VUE_APP_ROUTER}`,
  4. outputDir: 'web-live',
  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://106.12.161.200:8080',
  22. },
  23. '/api': {
  24. target: 'http://127.0.0.1:9001',
  25. changeOrigin: true,
  26. ws: false,
  27. },
  28. },
  29. },
  30. };