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.

1234567891011121314151617181920212223242526272829303132
  1. import { defineConfig } from 'umi';
  2. import routes from './src/routes';
  3. export default defineConfig({
  4. outputPath: 'dist',
  5. // alias: { '@': './src' },
  6. npmClient: 'npm',
  7. base: '/',
  8. routes,
  9. publicPath: '/',
  10. esbuildMinifyIIFE: true,
  11. icons: {},
  12. hash: true,
  13. history: {
  14. type: 'browser',
  15. },
  16. plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'],
  17. dva: {},
  18. lessLoader: {
  19. modifyVars: {
  20. hack: `true; @import "~@/less/index.less";`,
  21. },
  22. },
  23. devtool: 'source-map',
  24. proxy: {
  25. '/v1': {
  26. target: 'http://123.60.95.134:9380/',
  27. changeOrigin: true,
  28. // pathRewrite: { '^/v1': '/v1' },
  29. },
  30. },
  31. });