This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

vue-cli-plugin-node-config

0.1.1 • Public • Published

vue-cli-plugin-node-config

pipeline status

Integrates node-config with vue-cli.

Exposes configuration defined according to node-config in client code via Webpack's DefinePlugin

Installation

vue add node-config

Configuration

You can change how you access configuration through pluginOptions.

By default, CONFIG is used:

if (CONFIG.DEVELOPMENT) {
  // whatever
}
// vue.config.js
module.exports = {
  pluginOptions: {
    nodeConfig: {
      key: "somethingElse" // default: CONFIG
    }
  }
};
if (somethingElse.DEVELOPMENT) {
  // whatever
}

Readme

Keywords

none

Package Sidebar

Install

npm i vue-cli-plugin-node-config

Weekly Downloads

49

Version

0.1.1

License

Apache-2.0

Unpacked Size

321 kB

Total Files

12

Last publish

Collaborators

  • paradox41