npm i pea-plugin-antd
import AntdPlugin from 'pea-plugin-antd'
export default {
plugins: [new AntdPlugin()],
}
to modify the default Ant Design theme:
import AntdPlugin from 'pea-plugin-antd'
import LessPlugin from 'pea-plugin-less'
export default {
plugins: [
new LessPlugin({
modifyVars: {
'primary-color': 'black',
'link-color': '#1DA57A',
'border-radius-base': '10px',
},
javascriptEnabled: true,
}),
new AntdPlugin({
style: true,
}),
],
}