Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display summary of bundle output and stats #1392

Open
thescientist13 opened this issue Jan 19, 2025 · 0 comments
Open

display summary of bundle output and stats #1392

thescientist13 opened this issue Jan 19, 2025 · 0 comments
Labels
CLI enhancement Improve something existing (e.g. no docs, new APIs, etc)
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

Enhancement

Summary

In something like Next.js, when running a build, Next will generate a summary of the types of assets built with a nice legend for static, dynamic, and API route file types

➜  my-app git:(main) npm run build

> [email protected] build
> next build

   ▲ Next.js 15.1.5

   Creating an optimized production build ...
 ✓ Compiled successfully
 ✓ Linting and checking validity of types
 ✓ Collecting page data
 ✓ Generating static pages (5/5)
 ✓ Collecting build traces
 ✓ Finalizing page optimization

Route (app)                              Size     First Load JS
┌ ○ /                                    5.7 kB          111 kB
└ ○ /_not-found                          979 B           106 kB
+ First Load JS shared by all            105 kB
  ├ chunks/4bd1b696-20882bf820444624.js  52.9 kB
  ├ chunks/517-4d3c06c4b0493a5d.js       50.5 kB
  └ other shared chunks (total)          1.89 kB

Details

It would be nice to get something similar for the Greenwood CLI, aggregating all the Rollup bundle output and displaying a similar output for

  1. Static Pages
  2. Static Assets (?)
  3. SSR Pages
  4. API routes

We can also take inspiration from rollup-plugin-analyzer

@thescientist13 thescientist13 added CLI enhancement Improve something existing (e.g. no docs, new APIs, etc) labels Jan 19, 2025
@thescientist13 thescientist13 added this to the 1.x milestone Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI enhancement Improve something existing (e.g. no docs, new APIs, etc)
Projects
None yet
Development

No branches or pull requests

1 participant