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 523B

12345678910111213141516171819202122232425262728
  1. import { defineConfig } from "umi";
  2. import routes from './routes'
  3. export default defineConfig({
  4. outputPath: 'dist',
  5. // alias: { '@': './src' },
  6. routes,
  7. npmClient: 'npm',
  8. base: '/',
  9. publicPath: '/client/dist/',
  10. icons: {
  11. },
  12. hash: true,
  13. history: {
  14. type: 'hash',
  15. },
  16. plugins: ['@umijs/plugins/dist/dva'],
  17. dva: {},
  18. proxy: {
  19. '/v1': {
  20. 'target': 'http://54.80.112.79:9380/',
  21. 'changeOrigin': true,
  22. 'pathRewrite': { '^/v1': '/v1' },
  23. },
  24. },
  25. });