選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.ts 737B

8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
8ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { defineConfig } from '@umijs/max';
  2. import routes from './routes';
  3. const mode = process.env.mode;
  4. let options = {};
  5. if(mode === 'development') {
  6. options = {
  7. define: {
  8. "process.env": {
  9. NODE_ENV: JSON.stringify(mode)
  10. }
  11. }
  12. }
  13. } else if (mode === 'production') {
  14. options = {
  15. define: {
  16. "process.env": {
  17. NODE_ENV: JSON.stringify(mode)
  18. }
  19. }
  20. }
  21. }
  22. export default defineConfig({
  23. options,
  24. dva: {},
  25. antd: {},
  26. access: {
  27. },
  28. model: {},
  29. initialState: {
  30. },
  31. request: {},
  32. layout: {
  33. title: '菊城人才网',
  34. logo: '/images/logo_1.jpg',
  35. token: {
  36. colorPrimary: '#4FBE70'
  37. },
  38. },
  39. routes: routes,
  40. hash: true,
  41. npmClient: 'npm',
  42. });