Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-cli-plugin-eruda

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-eruda

Eruda Console Plugin for Vue CLI 3+

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
Maintainers
1
Weekly downloads
 
Created
Source

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
    }
  }
}
Options keyTypeDescription
enablebooleanWhen NODE_ENV !== 'production' plugin is enabled by default. You can pass true/false to force it to be enabled.
excluderegexp | regexp[]Used to exclude entries which you don't want to inject eruda. For example you are using "pages" option in vue.config.js
pluginsstring[]Passing plugin name to enable eruda plugin. You can use full module(['eruda-fps']) or shorthand(e.g. ['fps'] )
containerelementContainer element. If not set, it will append an element directly under html root element
toolstring[] | stringChoose which eruda's tools you want, by default all will be added.
autoScale=truebooleanAuto scale eruda for different viewport settings.
useShadowDom=truebooleanUse shadow dom for css encapsulation.
defaults objectDefault settings.

Available defaults settings:

NameTypeDesc
transparencynumberTransparency, 0 to 1
displaySizenumberDisplay size, 0 to 100
themestringTheme, 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

Keywords

FAQs

Package last updated on 23 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc