wodax-umi-plugin-datahub

1.0.2 • Public • Published

umi-plugin-datahub

umi plugin for integrating macaca-datahub, which is a GUI-style mock tool that can be used to replace umi's built-in mock solution.

Setup

Install it via npm or yarn,

$ npm i umi-plugin-datahub -D

Configure and import this plugin in .umirc.js,

export default {
  plugins: [
    'umi-plugin-datahub',
  ],
};

Options

We can specify options for macaca-datahub, such as proxy and store.

export default {
  plugins: [
    ['umi-plugin-datahub', {
      proxy: {
        '^/api': {
          hub: 'hubname',
        },
      },
      store: path.join(__dirname, 'data'),
    }],
  ],
};

Checkout macaca-datahub for more options.

Example

Contributors


sorrycc


xudafeng


tudou527

This project follows the git-contributor spec, auto updated at Fri Apr 05 2019 17:28:24 GMT+0800.

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i wodax-umi-plugin-datahub

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.41 kB

Total Files

4

Last publish

Collaborators

  • sunzhifeng