vue-cli-plugin-expose-env
vue cli 3 plgin to expose none VUEAPP env to frontend
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
License
the MIT License http://magicdawn.mit-license.org