From 4228e802b3782a48cf9fda1a4b7879c1255d5e79 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 31 Aug 2024 00:13:25 +0800 Subject: [PATCH] feat: enable mako --- config/config.ts | 10 ++++++---- config/proxy.ts | 1 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/config.ts b/config/config.ts index f0004a85..f251f3e9 100644 --- a/config/config.ts +++ b/config/config.ts @@ -14,7 +14,6 @@ export default defineConfig({ * @doc https://umijs.org/docs/api/config#hash */ hash: true, - /** * @name 兼容性设置 * @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖 @@ -148,9 +147,12 @@ export default defineConfig({ projectName: 'swagger', }, ], - mfsu: { - strategy: 'normal', - }, + /** + * @name 是否开启 mako + * @description 使用 mako 极速研发 + * @doc https://umijs.org/docs/api/config#mako + */ + mako: {}, esbuildMinifyIIFE: true, requestRecord: {}, }); diff --git a/config/proxy.ts b/config/proxy.ts index 73f098b2..66317891 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -21,7 +21,6 @@ export default { // changeOrigin: true, // }, // }, - mako: {}, /** * @name 详细的代理配置 * @doc https://github.com/chimurai/http-proxy-middleware