vite-perf
v0.1.0
Published
A cli tool to collect vite performance metrics
Downloads
29
Readme
vite-perf
A cli tool to collect vite server performance metrics, includes:
- vite config loading time
- tsconfck init time
- vite server start up time
- vite server scan dependencies time
- vite server pre-bundle time
- browser page loading time
Screenshot
Prerequisite
- vite@^4.0.0
- node@^14.0.0
Install
$ npm i vite-perf
Usage
$ vperf --force --load startUp
Options
|option|type|required|description
|-----|:-----:|:-----|-------|
|--force |boolean
||same as vite --force
|
|--load|'startUp'/'prebundle'
||specific when to load the page, 'startUp'
means load the page once vite server starts up, 'prebundle'
means load the page once vite server finishes pre-bundle