vue-cli-plugin-global-config
v1.0.5
Published
Global Config plugin for vue-cli
Downloads
41
Readme
vue-cli-plugin-global-config
Global Config Plugin for vue-cli@^3.0
Install
If you haven't yet installed vue-cli 3, first follow the install instructions here
Then create a project and add the Global Config plugin:
vue create my-app
cd my-app
vue add global-config
# or
vue add vue-cli-plugin-global-config
Warning: It is recommended to commit your project's current state before running vue add, since the command will invoke the plugin's file generator and potentially make changes to your existing files.
Additional information
- Global Config Vue.config is an object containing Vue’s global configurations. You can modify its properties listed below before bootstrapping your application:
- CLI Plugin Development Guide A CLI plugin is an npm package that can add additional features to the project using Vue CLI.
Plugin generate structure:
├── .env
├── .env.production
└── src
└── plugins
└── vue-global-config
└── index.js
Plugin modify:
└── src
└── main.js