A umi plugin for develop a umi block with umi
Configure in .umirc.js
,
export default {
plugins: [['umi-plugin-block-dev', options]]
};
And you can use create-umi
to create a umi block automatically:
$ yarn create umi --block
{
layout: 'ant-design-pro', // or ant-design-pro-user
menu: {
name: 'demo',
icon: 'home',
},
mockUmiRequest: true // whether to build mock data . _mock.js
}
MIT