Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/PengBoUESTC/vite-plugin-msg-log

log your current env
https://github.com/PengBoUESTC/vite-plugin-msg-log

Last synced: about 2 months ago
JSON representation

log your current env

Lists

README

        

# vite-plugin-msg-log
log your current env

## example

1. U can provide some config to `logEnvPlugin`,

- `envKey`: the key of env which mount on the `process.env` object

- `strGetter`: a function to gen a str

```javascript
import { logEnvPlugin } from 'vite-plugin-msg-log';

export default defineConfig({
// ...
plugins: [
// logEnvPlugin({
// envKey: 'ENV'
// }),
logEnvPlugin({
strGetter: () => {
return 'show msg after web request!'
}
}),
]
// ...
})
```