0.0.1 • Published 7 years ago
vue-cli-plugin-expose-env v0.0.1
vue-cli-plugin-expose-env
vue cli 3 plgin to expose none VUEAPP env to frontend
Install
$ npm i vue-cli-plugin-expose-env --saveoptions
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
0.0.1
7 years ago