vue-cli-plugin-eruda
v1.5.0
Published
Eruda Console Plugin for Vue CLI 3+
Downloads
189
Readme
vue-cli-plugin-eruda
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.