wodax-umi-plugin-block-dev

A umi plugin for develop a umi block with umi

Usage no npm install needed!

<script type="module">
  import wodaxUmiPluginBlockDev from 'https://cdn.skypack.dev/wodax-umi-plugin-block-dev';
</script>

README

umi-plugin-block-dev

NPM version NPM downloads

A umi plugin for develop a umi block with umi

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',
}

env

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

LICENSE

MIT