vue-cli-plugin-expose-env

vue cli 3 plgin to expose none VUE_APP_ env to frontend

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-cli-plugin-expose-env
0.0.15 years ago5 years agoMinified + gzip package size for vue-cli-plugin-expose-env in KB

Readme

vue-cli-plugin-expose-env
vue cli 3 plgin to expose none VUEAPP env to frontend

Build Status Coverage Status 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