Hot reload .env files

08.09.20201 Min Read — In Packages

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 for usage of .env file.
  2. Modify .env files in runtime and have it dynamically injected into your application
  3. Support modification, addtion, deletion of field in .env files
  4. Only works in development mode. In production mode you won't need hot reload anyway.
  5. 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

yarn add vue-cli-plugin-envhot

OR

npm install -S vue-cli-plugin-envhot
你必须登录才能发表评论