12345678910111213141516171819202122232425 |
- // https://umijs.org/config/
- import { defineConfig } from 'umi'
- import proxy from './proxy'
- const { REACT_APP_ENV } = process.env
- export default defineConfig({
- plugins: [
- // https://github.com/zthxxx/react-dev-inspector
- 'react-dev-inspector/plugins/umi/react-inspector',
- ],
- // https://github.com/zthxxx/react-dev-inspector#inspector-loader-props
- inspectorConfig: {
- exclude: [],
- babelPlugins: [],
- babelOptions: {},
- },
- devServer: {
- port: 4300,
- },
- copy: [
- { from: 'src/assets/huanart', to: './' },
- { from: 'src/ico/favicon-huanart.ico', to: './favicon.ico' },
- ],
- proxy: proxy[REACT_APP_ENV || 'dev'],
- })
|