From fc6ce19f0b43b72166f9e66b6e566e77be67a1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E9=81=93?= Date: Thu, 20 Dec 2018 18:45:03 +0800 Subject: [PATCH] add umi-plugin-pro-block --- config/config.js | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/config.js b/config/config.js index ee5ff285..38b51758 100644 --- a/config/config.js +++ b/config/config.js @@ -23,6 +23,15 @@ export default { }, }, ], + [ + 'umi-plugin-pro-block', + { + moveMock: false, + moveService: false, + modifyRequest: true, + autoAddMenu: true, + }, + ], ], targets: { ie: 11, diff --git a/package.json b/package.json index 09b089dc..c9937c7e 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,8 @@ "tslint-react": "^3.6.0", "umi": "^2.4.2", "umi-plugin-ga": "^1.1.3", - "umi-plugin-react": "^1.3.4" + "umi-plugin-react": "^1.3.4", + "umi-plugin-pro-block": "^1.2.0" }, "optionalDependencies": { "puppeteer": "^1.10.0" -- GitLab