https://github.com/magicdawn/vue-cli-plugin-expose-env
vue cli 3 plugin to expose none `VUE_APP_` env to frontend
https://github.com/magicdawn/vue-cli-plugin-expose-env
Last synced: 3 months ago
JSON representation
vue cli 3 plugin to expose none `VUE_APP_` env to frontend
- Host: GitHub
- URL: https://github.com/magicdawn/vue-cli-plugin-expose-env
- Owner: magicdawn
- License: mit
- Created: 2018-11-14T12:59:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T13:08:23.000Z (over 7 years ago)
- Last Synced: 2025-01-11T05:51:27.568Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-cli-plugin-expose-env
> vue cli 3 plugin to expose none `VUE_APP_` env to frontend
[](https://www.npmjs.com/package/vue-cli-plugin-expose-env)
[](https://www.npmjs.com/package/vue-cli-plugin-expose-env)
[](http://magicdawn.mit-license.org)
## Install
```sh
$ npm i vue-cli-plugin-expose-env --save
```
## options
vue.config.js
```js
module.exports = {
pluginOptions: {
exposeEnv: ['SOME_ENV'],
},
}
```
then it's ok to use `process.env.SOME_ENV` in frontend code
## Changelog
[CHANGELOG.md](CHANGELOG.md)
## License
the MIT License http://magicdawn.mit-license.org