vite-plugin-msg-log
v1.1.0
Published
log your current env
Downloads
208
Readme
vite-plugin-msg-log
log your current env
example
- U can provide some config to
logEnvPlugin
,
envKey
: the key of env which mount on theprocess.env
objectstrGetter
: 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!'
}
}),
]
// ...
})