Files
ragflow/web/.umirc.ts
balibabu e1bc1d46e6 feat: install prettier to format code and add react-dev-inspector to locate code in the IDE faster (#44)
* feat: add react-dev-inspector to locate code in the IDE faster

* feat: install prettier to format code

---------

Co-authored-by: yangqianjuan <1072483500@qq.com>
2024-01-29 15:02:27 +08:00

30 lines
608 B
TypeScript

import { defineConfig } from "umi";
import routes from './routes'
export default defineConfig({
outputPath: 'dist',
// alias: { '@': './src' },
routes,
npmClient: 'npm',
base: '/',
publicPath: '/web/dist/',
esbuildMinifyIIFE: true,
icons: {
},
hash: true,
history: {
type: 'browser',
},
plugins: ['@react-dev-inspector/umi4-plugin','@umijs/plugins/dist/dva',],
dva: {},
// proxy: {
// '/v1': {
// 'target': 'http://54.80.112.79:9380/',
// 'changeOrigin': true,
// 'pathRewrite': { '^/v1': '/v1' },
// },
// },
});