umijs / umi-plugin-block-dev

A umi plugin for develop a umi block with umi.
MIT License
14 stars 2 forks source link

umi-plugin-block-dev

NPM version NPM downloads

A umi plugin for develop a umi block with umi

Layout

blankLayout

image

ant-design-pro

image

ant-design-pro-user

image

Usage

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

options

{
  layout: 'ant-design-pro', // or ant-design-pro-user
  menu: {
    name: 'demo',
    icon: 'home',
  },
  mockUmiRequest: true // whether to build mock data . _mock.js
}

env

LICENSE

MIT