Skip to content

PengBoUESTC/vite-plugin-msg-log

Repository files navigation

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

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

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

About

log your current env

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published