🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@enx/vue-cli-plugin-enx

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enx/vue-cli-plugin-enx

Vue CLI plugin for Enx injection during webpack configuration

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

enx-vue-cli-plugin

Vue CLI plugin for Enx injection during webpack configuration

See Enx docs for front-end usage

Customizing enx options

Override enx options in file vue.config.js:

module.exports = {
  ...
  pluginOptions: {
    enx: {
      cwd: './config',
      debug: true
    },
  },

ESLint

Disable ESLint warnings for enx global variable by setting the following config into your ESLint config file:

globals: {
  enx: true,
}

Vue global variable

Consider inject enx variable into your Vue instance using your main Vue App props (so you'd access it through this.$root.enx) or using Vue prototype as below:

// main.js
Vue.prototype.enx = enx;

// any component or view file
const anyConfig = this.enx.config;

FAQs

Package last updated on 17 Jun 2020

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