ソースを参照

refactor: remove unuse code

陈帅 6 年 前
コミット
cb78d9f23b
2 ファイル変更3 行追加12 行削除
  1. 2 10
      config/config.ts
  2. 1 2
      package.json

+ 2 - 10
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: [
     {

+ 1 - 2
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",