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.

.umirc.ts 710B

12345678910111213141516171819202122232425262728293031
  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: '/web/dist/',
  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/variable.less";`,
  21. },
  22. },
  23. // proxy: {
  24. // '/v1': {
  25. // 'target': 'http://54.80.112.79:9380/',
  26. // 'changeOrigin': true,
  27. // 'pathRewrite': { '^/v1': '/v1' },
  28. // },
  29. // },
  30. });