umijs-plugin-vconsole NPM version Build Status Coverage percentage david-dm

Install

# or yarn
$ npm install
$ npm run build --watch
$ npm run start

Usage

Configure in .umirc.js,

export default {
  plugins: ['umijs-plugin-vconsole'],
};

More configuration click here

export default {
  vconsole: {
    defaultPlugins: ['system', 'network', 'element', 'storage'],
    onReady: true,
    hidden:false,
    debug: true
  },
};

Options

hidden 优先级最高,表示隐藏 vconsole,同时设置 debug 默认无效
debug 在生产环境下打开调试 vconsole,默认只在开发环境显示 vconsole

LICENSE

MIT