vue-config

vue-config JS library on GitHub vue-config JS library on npm Download vue-config JS library

A better way to get App config

Version 1.0.0 License MIT
vue-config has no homepage
vue-config JS library on GitHub
vue-config JS library on npm
Download vue-config JS library
Keywords
vue

vue-config

An easy way to get App config

Usage

npm install vue-config
const vueConfig = require('vue-config')
const configs = {
  API: 'http://localhost:6003' // It's better to require a config file
}

Vue.use(vueConfig, configs)

// A param named `$config` will be injected in to every component, so in your component, you can get config easily
const API = this.$config.API