.umirc.ts 571 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from 'umi';
  2. import proxy from './proxy';
  3. import routes from './routes';
  4. import defaultSettings from './defaultSettings';
  5. const { REACT_APP_ENV } = process.env;
  6. export default defineConfig({
  7. ssr: {},
  8. exportStatic: {},
  9. nodeModulesTransform: {
  10. type: 'none',
  11. },
  12. routes,
  13. // proxy: proxy[REACT_APP_ENV || 'dev'],
  14. fastRefresh: {},
  15. // plugins: ['@umijs/plugin-initial-state'],
  16. // layout: {
  17. // // https://umijs.org/zh-CN/plugins/plugin-layout
  18. // locale: true,
  19. // siderWidth: 208,
  20. // ...defaultSettings,
  21. // },
  22. });