vue-config

A better way to get App config
10,793 36
vue
Install
npm install vue-config
Latest Version:1.0.0
License:MIT
Last Updated:May 14, 2016
Links: GitHub  ·  npm
Maintainer: airyland

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

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released License
1.0.0 MIT