一覧へ戻る
windlil/vite-plugin-timelog(新しいタブで開きます)
主要言語: TypeScript
Vite plugin: regularly display current file information.
- star 数
- 2
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2023/07/18
主要言語: TypeScript
Vite plugin: regularly display current file information.
In the vite dev, automatic reminders of elapsed encoding time in the console.
console the composition of the current project.
npm i vite-plugin-timelog -D
yarn i vite-plugin-timelog -D
#recommend
pnpm i vite-plugin-timelog -D
import { defineConfig } from 'vite' import { VitePluginTimeLog } from 'vite-plugin-timelog' export default defineConfig({ plugins: [ VitePluginTimeLog({ interval: "1h", }) ] })
TIPS: This plugin will only take effect in dev environment.
interval Interval time, if the value you pass in is a number, the default unit is seconds, If you are passing in a string, follow the following format:1s 1m 1h .
❗Such use is not allowed: 1h5s You can only pass one unit in a string.
spaced Whether you need to display content more compact.
barstyle You can customize the shape.
export interface Options { interval: string | number spaced?: boolean barstyle?: string }
//example export default defineConfig({ plugins: [ VitePluginTimeLog({ interval: 5, spaced: true, barstyle: "⭐" }) ] })