import { defineConfig } from "umi"; export default defineConfig({ plugins: [require.resolve("umi-plugin-antd-style")], // 配置开启 antdStyle: { } as ['antd-style'].ThemeProviderProps });配置配置,在 config/config.ts 或者 .umirc.ts 文件中编写配置...
我用https://github.com/kriasoft/react-starter-kit 这个脚手架,现在想用antd, 按照说明安装了babel-plugin-import,然后在webpack.config 文件里面增加了['import', { libraryName: 'antd', style: 'css' }], loaders: [ { test: /.jsx?$/, loader: 'babel-loader', inc
需要加 @root-entry-name: default; @import (reference) '~antd/es/style/themes/index'; antd 4.19.1