From cb78d9f23b2e600e227a00270274a399a98a9c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 28 Nov 2019 15:10:39 +0800 Subject: [PATCH] refactor: remove unuse code --- config/config.ts | 12 ++---------- package.json | 3 +-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/config/config.ts b/config/config.ts index afccb35d..689537a0 100644 --- a/config/config.ts +++ b/config/config.ts @@ -3,13 +3,11 @@ import defaultSettings from './defaultSettings'; // https://umijs.org/config/ import slash from 'slash2'; import themePluginConfig from './themePluginConfig'; -// import darkTheme from '@ant-design/dark-theme'; - -const { pwa, primaryColor } = defaultSettings; +const { pwa } = defaultSettings; // preview.pro.ant.design only do not use in your production ; // preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。 -const { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION, TEST } = process.env; +const { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION } = process.env; const isAntDesignProPreview = ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site'; const plugins: IPlugin[] = [ @@ -72,16 +70,10 @@ if (isAntDesignProPreview) { export default { plugins, - block: { - // 国内用户可以使用码云 - // defaultGitUrl: 'https://gitee.com/ant-design/pro-blocks', - defaultGitUrl: 'https://github.com/ant-design/pro-blocks', - }, hash: true, targets: { ie: 11, }, - devtool: isAntDesignProPreview ? 'source-map' : false, // umi routes: https://umijs.org/zh/guide/router.html routes: [ { diff --git a/package.json b/package.json index 33d43d20..d44a22e5 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,7 @@ "not ie <= 10" ], "dependencies": { - "@ant-design/dark-theme": "1.0.3", - "@ant-design/pro-layout": "4.8.3", + "@ant-design/pro-layout": "^4.8.3", "@antv/data-set": "^0.10.2", "antd": "^3.23.6", "classnames": "^2.2.6",