Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/bundle-analyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Vite Bundle Visualizer

on:
push:
branches: [ chore/all-my-stuffs ]

jobs:
analyze:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm i --ignore-scripts

# Ensure vite-bundle-visualizer is installed
# (or remove this step if already in package.json)
- name: Install visualizer
run: pnpm install --save-dev vite-bundle-visualizer

- name: Build the app
run: pnpm build

- name: Generate bundle visualizer report
run: |
# Generate stats.html using npx
npx vite-bundle-visualizer dist --template treemap --open false


- name: Upload bundle visualizer report
uses: actions/upload-artifact@v4
with:
name: bundle-visualizer-report
path: dist/stats.html
if-no-files-found: error
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"devDependencies": {
"@antfu/eslint-config": "^0.41.0",
"@iconify-json/mdi": "^1.1.50",
"@intlify/unplugin-vue-i18n": "^11.0.0",
"@intlify/unplugin-vue-i18n": "^11.2.4",
"@playwright/test": "^1.59.1",
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^18.2.0",
Expand Down
67 changes: 37 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading