ソースを参照

release: 6.29.4

lanjianrong 4 年 前
コミット
4cec7fe00c
1 ファイル変更10 行追加1 行削除
  1. 10 1
      config/config.js

+ 10 - 1
config/config.js

@@ -11,7 +11,7 @@ export default defineConfig({
   plugins: [require.resolve('@umijs/plugins/dist/unocss')],
   npmClient: 'pnpm',
   hash: true,
-  antd: { import: true },
+  antd: {},
   model: {},
   moment2dayjs: {},
   request: {},
@@ -49,6 +49,15 @@ export default defineConfig({
         camel2DashComponentName: false
       },
       '@icon-park/react'
+    ],
+    [
+      'import',
+      {
+        libraryName: 'antd',
+        libraryDirectory: 'es',
+        style: 'less'
+      },
+      'antd'
     ]
   ],
   externals: {