From db2631ebe4290e938690fbf334e5783d4cebac5d Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 9 Oct 2024 11:57:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20enable=20mako=20=E2=9A=A1=20(#11326)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.ts | 9 ++++++--- config/proxy.ts | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/config.ts b/config/config.ts index d6b86175..ed5df200 100644 --- a/config/config.ts +++ b/config/config.ts @@ -157,9 +157,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