vue-cli-plugin-envdotyaml

1.0.1 • Public • Published

vue-cli-plugin-env-yaml

This is a vue-cli 3.x plugin to inject environment variables.

Environment variables injection

env.yaml:

baseURL: http://example.com/

npm run build

console.log(process.env.baseURL)
// => http://example.com/

Getting started

⚠️ Make sure you have vue-cli 3.x.x:

vue --version

If you don't have a project created with vue-cli 3.x yet:

vue create my-new-app

Navigate to the newly created project folder and add the cli plugin:

cd my-new-app
vue add envdotyaml

Start your app:

npm run serve

Readme

Keywords

Package Sidebar

Install

npm i vue-cli-plugin-envdotyaml

Weekly Downloads

13

Version

1.0.1

License

MIT

Unpacked Size

2.09 kB

Total Files

5

Last publish

Collaborators

  • aircity