@ito-frontend/vite-plugin-simple-git-logger
v0.0.11
Published
@ito-frontend/vite-plugin-simple-git-logger
Downloads
546
Readme
OneAd Fontend Vite Plugin Simple Git Logger
Install
pnpm add -D @ito-frontend/vite-plugin-simple-git-logger
// 參數設定
interface Options {
/**
* Vite 環境變數
* Required
*/
mode: string
/**
* 在哪種模式下不顯示 log
* @default ['production']
*/
disabledModeList?: string[]
}
// vite.config.ts
import simpleGitLogger from '@ito-frontend/vite-plugin-simple-git-logger'
export default defineConfig(({ mode }) => {
return {
plugins: [
// plugins
simpleGitLogger({ mode }),
]
}
})