山西督察-superintend-distribute-web react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.0 KiB

  1. // https://umijs.org/config/
  2. import { defineConfig } from 'umi';
  3. import defaultSettings from './defaultSettings';
  4. import proxy from './proxy';
  5. import routes from './routes';
  6. const { REACT_APP_ENV } = process.env;
  7. export default defineConfig({
  8. hash: true,
  9. antd: {},
  10. dva: {
  11. hmr: true,
  12. },
  13. history: {
  14. type: 'browser',
  15. },
  16. locale: {
  17. // default zh-CN
  18. default: 'zh-CN',
  19. antd: true,
  20. // default true, when it is true, will use `navigator.language` overwrite default
  21. baseNavigator: true,
  22. },
  23. dynamicImport: {
  24. loading: '@/components/PageLoading/index',
  25. },
  26. targets: {
  27. ie: 11,
  28. },
  29. // umi routes: https://umijs.org/docs/routing
  30. routes,
  31. // Theme for antd: https://ant.design/docs/react/customize-theme-cn
  32. theme: {
  33. 'primary-color': defaultSettings.primaryColor,
  34. },
  35. base: '/superintend/',
  36. publicPath: '/superintend/',
  37. title: false,
  38. ignoreMomentLocale: true,
  39. proxy: proxy[REACT_APP_ENV || 'dev'],
  40. manifest: {
  41. basePath: '/',
  42. },
  43. esbuild: {},
  44. define: {
  45. }
  46. });