https://github.com/sun0day/vite-perf
A cli tool to collect vite performance metrics
https://github.com/sun0day/vite-perf
Last synced: about 2 months ago
JSON representation
A cli tool to collect vite performance metrics
- Host: GitHub
- URL: https://github.com/sun0day/vite-perf
- Owner: sun0day
- License: mit
- Created: 2023-04-15T14:26:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T11:06:04.000Z (about 2 years ago)
- Last Synced: 2025-02-28T07:02:50.622Z (2 months ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```shell
$ npm i vite-perf
```## Usage
```shell
$ 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