config.dev.ts 654 B

12345678910111213141516171819202122232425
  1. // https://umijs.org/config/
  2. import { defineConfig } from 'umi'
  3. import proxy from './proxy'
  4. const { REACT_APP_ENV } = process.env
  5. export default defineConfig({
  6. plugins: [
  7. // https://github.com/zthxxx/react-dev-inspector
  8. 'react-dev-inspector/plugins/umi/react-inspector',
  9. ],
  10. // https://github.com/zthxxx/react-dev-inspector#inspector-loader-props
  11. inspectorConfig: {
  12. exclude: [],
  13. babelPlugins: [],
  14. babelOptions: {},
  15. },
  16. devServer: {
  17. port: 4300,
  18. },
  19. copy: [
  20. { from: 'src/assets/huanart', to: './' },
  21. { from: 'src/ico/favicon-huanart.ico', to: './favicon.ico' },
  22. ],
  23. proxy: proxy[REACT_APP_ENV || 'dev'],
  24. })