Skip to content

Vite Size Action - Get a PR comment with information on your library's bundle size changes.

Notifications You must be signed in to change notification settings

glitch-txs/vite-size-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-size-action

Use GitHub Actions to get a comment on your PR's with tables showing information about the bundle size of your current against your base branch. Vite Size Action uses Vite's JavaScript API to build and calculate the bundle size of the output build of your project.

Note

This project is very early and was initially built for a specific library, a lot of improvements and features can be potentially added. Feel free to collab. Thanks! <3

Configuration

Set up a global script called size following vite-size configuration steps

workflow

on:
  pull_request:
    branches:
      - main

jobs:
  vite_size:
    runs-on: ubuntu-latest
    name: Run Vite Size
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm install
      - name: Running vite-size script
        uses: glitch-txs/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
```

About

Vite Size Action - Get a PR comment with information on your library's bundle size changes.

Resources

Stars

Watchers

Forks

Packages

No packages published