Files
creator-hub/web/.umirc.ts
T

17 lines
568 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from '@umijs/max';
export default defineConfig({
// 多入口 async chunk 间 esbuild helper 冲突(esbuild#3818,checker 直接 fatal 退出);改用 terser 压缩器绕开
jsMinifier: "terser",
// ant-design-pro 同构:约定式路由 + max 内建能力
// MFSU 在本机反复出现 mfsu-virtual-entry 解析不到 src/.umi/umi.ts 的缓存问题,直接关闭(正确性优先)
mfsu: false,
proxy: {
'/api': {
target: 'http://127.0.0.1:8082',
changeOrigin: true,
},
},
npmClient: 'npm',
});