Language : 🇺🇸 English | 🇨🇳 简体中文
PKG Size
Overview
PKG Size is a VSCode plugin that statistics package.json dependencies size 📦
Features
- Size after packing
- Size after gzip compression
- Show size of current file in bottom status bar
- Build result cache
Snapshot
package.json
Status bar
How to use
Clear the current project cache
Click the status bar icon to clear the build cache
or
# Open Command Palette (Command/Ctrl + Shift + P)
Rebuild Deps
will only clear the dependency cache used by the current project (if any)
Clear all cache
Linux and MacOS : rm -f ~/.pkg.size
Windows : delete C:\Users\YouName\.pkg.size
Question asked frequently
Some deps can't build
deps with specific loader will not builded
Can I build backend myself
Yes
Deployment backend see bundlephobia
Modify configuration file ${home}/.pkg-size 的 baseUrl
{
"configs":{
"baseUrl": "https://youdomain"
}
}
Can I implement the backend myself
Yes
GET /api/size/package=port-seletor@0.1.5
# return
data: {
size: string
gzip: string
}
Release Notes
SEE CHANGELOG
Thanks
Package icons created by IconBaandar - Flaticon
build info from bundlephobia
| |