@alitajs/block-dev

0.0.1 • Public • Published

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

  • BLOCK_DEV_PATH: custom block preview path
  • BLOCK_DEV_MOCK_UMI_REQUEST: package mock data to build result, for build static preview site
  • BLOCK_PAGES_LAYOUT: custom block Layout

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @alitajs/block-dev

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

33.3 kB

Total Files

18

Last publish

Collaborators

  • pengyh
  • ashoka_j
  • diyc
  • xiaohuoni
  • imhele
  • wangxingkang
  • shawdanon
  • cjy0208
  • sorrycc
  • hang1017
  • hammersjs