解决creat-react-app安装v5报错找不到组件(初次)
config-overrides.js 文件
const { override, fixBabelImports, addPostcssPlugins } = require('customize-cra');
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es', // 需要开放该配置
style: 'css',
}),
addPostcssPlugins([
require('postcss-pxtorem')({
rootValue: 16,
propList: ['*'],
}),
]),
);