Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: 18 days ago
JSON representation

log your current env

Awesome Lists containing this project

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!'
}
}),
]
// ...
})
```