log your current env
- U can provide some config to
logEnvPlugin
,
-
envKey
: the key of env which mount on theprocess.env
object -
strGetter
: a function to gen a str
import { logEnvPlugin } from 'vite-plugin-msg-log';
export default defineConfig({
// ...
plugins: [
// logEnvPlugin({
// envKey: 'ENV'
// }),
logEnvPlugin({
strGetter: () => {
return 'show msg after web request!'
}
}),
]
// ...
})