.umirc.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { defineConfig } from 'umi';
  2. export default defineConfig({
  3. routes: [
  4. { path: '/vipRecharge', component: '@/pages/VipRecharge/VipRecharge' },
  5. //迁移JS项目
  6. {
  7. path: '/',
  8. redirect: '/vipRecharge'
  9. },
  10. ],
  11. proxy: {
  12. '/api-app': {
  13. target: 'http://api.starbuds.laylib.com',
  14. changeOrigin: true,
  15. //pathRewrite: { '^/server': '' },
  16. },
  17. '/api-common': {
  18. target: 'http://api.starbuds.laylib.com',
  19. changeOrigin: true,
  20. //pathRewrite: { '^/server': '' },
  21. },
  22. },
  23. plugins: [
  24. '@alitajs/hd',
  25. ],
  26. locale: {
  27. default: 'zh-CN', //默认语言 zh-CN,如果 baseSeparator 设置为 _,则默认为 zh_CN
  28. baseNavigator: true, // 为true时,用navigator.language的值作为默认语言
  29. antd: true, // 是否启用antd的<LocaleProvider />
  30. baseSeparator: '-', // 语言默认分割符 -
  31. },
  32. hd: {
  33. "theme": {},
  34. "px2rem": {
  35. "rootValue": 100,
  36. "unitPrecision": 5,
  37. "propWhiteList": [],
  38. "propBlackList": [],
  39. "exclude": false,
  40. "selectorBlackList": [],
  41. "ignoreIdentifier": false,
  42. "replace": true,
  43. "mediaQuery": false,
  44. "minPixelValue": 0
  45. }
  46. },
  47. outputPath: './vipRecharge',
  48. hash: true,
  49. publicPath: '/',
  50. });