Seamlessly add .env file hot reloading support for your vue-cli based projects. Never worry about rebooting webpack-dev-server again.
- Reference Here for usage of .env file.
- Modify .env files in runtime and have it dynamically injected into your application
- Support modification, addtion, deletion of field in .env files
- Only works in development mode. In production mode you won't need hot reload anyway.
- 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'
yarn add vue-cli-plugin-envhot
OR
npm install -S vue-cli-plugin-envhot