Skip to content
vue cli 3 plugin to expose none `VUE_APP_` env to frontend
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.eslintrc.yml
.gitignore
.prettierrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

vue-cli-plugin-expose-env

vue cli 3 plugin to expose none VUE_APP_ env to frontend

npm version npm downloads npm license

Install

$ npm i vue-cli-plugin-expose-env --save

options

vue.config.js

module.exports = {
  pluginOptions: {
    exposeEnv: ['SOME_ENV'],
  },
}

then it's ok to use process.env.SOME_ENV in frontend code

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

You can’t perform that action at this time.