Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serializedowen/vue-cli-plugin-envhot
Seamlessly add .env hot reloading support for your vue-cli based projects.
https://github.com/serializedowen/vue-cli-plugin-envhot
dotenv hotreloading vue
Last synced: 4 months ago
JSON representation
Seamlessly add .env hot reloading support for your vue-cli based projects.
- Host: GitHub
- URL: https://github.com/serializedowen/vue-cli-plugin-envhot
- Owner: serializedowen
- License: mit
- Created: 2020-08-14T03:08:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T12:30:42.000Z (over 1 year ago)
- Last Synced: 2024-10-06T07:32:47.911Z (4 months ago)
- Topics: dotenv, hotreloading, vue
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-cli-plugin-envhot
Seamlessly add .env file hot reloading support for your vue-cli based projects. Never worry about rebooting webpack-dev-server again.
## Features & Tips
1. Reference [Here](https://cli.vuejs.org/guide/mode-and-env.html) for usage of .env file.
1. Modify .env files in runtime and have it dynamically injected into your application
1. Support modification, addtion, deletion of field in .env files
1. Only works in development mode. In production mode you won't need hot reload anyway.
1. Priority of file is `[".env.development.local", ".env.development", ".env.local", ".env"]`, i.e., value with same key defined in '.env.local' will overwrite value defined in '.env'## Installation
```bash
yarn add vue-cli-plugin-envhot
```OR
```bash
npm install -S vue-cli-plugin-envhot
```