1.5.0 • Published 1 year ago

vue-cli-plugin-eruda v1.5.0

Weekly downloads
45
License
MIT
Repository
github
Last release
1 year ago

vue-cli-plugin-eruda

npm npm

A Vue CLI 3+ plugin of eruda.

中文文档

Installation

Install under a project created by Vue CLI, It will automatically load this plugin.

npm install --save-dev vue-cli-plugin-eruda

# If Vue CLI is installed globally
vue add erudu

Global variable

After injection, a global variable will be provided for calling eruda API.

var eruda = require("eruda");
window.eruda === undefined && (window.eruda = eruda);

Options

// vue.config.js
module.exports = {
  // ... your configs 

  pluginOptions: {
    eruda: {
      // options
    }
  }
}

Available defaults settings: |Name |Type |Desc | |------------|------|---------------------------------------------| |transparency|number|Transparency, 0 to 1 | |displaySize |number|Display size, 0 to 100 | |theme |string|Theme, defaults to Light or Dark in dark mode|

container, tool, autoScale, useShadowDom, defaults are eruda's default configuration. You can check document for more information.

License

MIT