Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@enx/vue-cli-plugin-enx

ggondim37ISC1.0.9

Vue CLI plugin for Enx injection during webpack configuration

readme

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;

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[1.0.5] - 2020-05-12

Added

  • Added plugin options support in vue.config.js file

[1.0.1] - 2020-05-12

Upgrades

  • Bump enx to 1.4.0

Security

  • Disabled enx's new feature process env injection