vue.config.js 932 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // const BASE_URL = process.env.NODE_ENV === 'production' ? './' : './';
  2. module.exports = {
  3. publicPath: './',
  4. css: {
  5. extract: {
  6. ignoreOrder: true,
  7. },
  8. },
  9. devServer: {
  10. port: 8888,
  11. proxy: {
  12. '/api': {
  13. target: 'https://windata.platomix.net/api',
  14. ws: true,
  15. pathRewrite: {
  16. '^/api': '/',
  17. },
  18. timeout: 10000000,
  19. },
  20. '/es-api': {
  21. target: 'https://windata.platomix.net',
  22. ws: true,
  23. pathRewrite: {
  24. '^/es-api': '/es-api',
  25. },
  26. timeout: 10000000,
  27. },
  28. }
  29. },
  30. chainWebpack: config => {
  31. config.plugin('html').tap(args => {
  32. args[0].title = '超级审搜';
  33. return args;
  34. });
  35. }
  36. // 选项
  37. }