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.

config.ts 494B

1234567891011121314151617181920212223242526272829303132
  1. import { defineConfig } from '@umijs/max';
  2. import routes from './routes';
  3. const mode = process.env.mode;
  4. export default defineConfig({
  5. define: {
  6. "process.env": {
  7. BUILD_ENV: JSON.stringify(mode)
  8. }
  9. },
  10. dva: {},
  11. antd: {
  12. configProvider: {}
  13. },
  14. access: {
  15. login: true,
  16. home: true,
  17. },
  18. initialState: {
  19. },
  20. model: {},
  21. request: {},
  22. layout: {
  23. title: '',
  24. logo: '/images/onlylogo.jpg',
  25. },
  26. routes: routes,
  27. hash: true,
  28. npmClient: 'npm'
  29. });