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: 18 days ago
JSON representation
log your current env
- Host: GitHub
- URL: https://github.com/PengBoUESTC/vite-plugin-msg-log
- Owner: PengBoUESTC
- Created: 2022-08-30T04:45:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-09T12:02:43.000Z (about 2 years ago)
- Last Synced: 2024-10-19T11:19:38.383Z (25 days ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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!'
}
}),
]
// ...
})
```