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

Parcel --detailed-report not showing all assets. How can i output the whole report? #1857

Closed
brendanmorrell opened this issue Aug 6, 2018 · 5 comments

Comments

@brendanmorrell
Copy link

brendanmorrell commented Aug 6, 2018

πŸ™‹β€β™€οΈ Feature

πŸ”¦ Context

I am trying to look at a report of all my asset build times and sizes. However, whenever I use 'parcel build path/to/my/index.html --detailed-report' my terminal output cuts off a lot of the assets, and instead just lists '+28 more assets' at the bottom. How can I list all of the assets?

I searched through the docs, and the github issues, but I couldn't find an answer anywhere.

Also, is there anyway to get the output in json format? Thanks
screen shot 2018-08-06 at 2 49 12 pm

πŸ’» Code Sample

🌍 Your Environment

Software Version(s)
Parcel 1.9.7
Node v8.11.3
npm/Yarn 5.6.0 (npm), 1.1.0(yarn)
Operating System mac os high sierra (10.13.6)
@DeMoorJasper
Copy link
Member

DeMoorJasper commented Aug 6, 2018

Currently there is no way to get the entire list, but it would make sense to generate some kind of report file if requested either json or simple txt.

Not sure if the terminal is the right place to list all assets though (The file idea is probably better).

I'll flag this as a feature request, if you feel like diggin into this, it's very easy. The report system is very isolated from the core of parcel.

Currently it lists the largest files first, so it kinda makes sense to cut it off as the ones below that are less important.

@devongovett
Copy link
Member

@brendanmorrell
Copy link
Author

Great. Looking into it. Thanks for the help!

@Jerska
Copy link

Jerska commented Oct 29, 2018

I'd personally be happy to have the full list in my terminal.

Would you be OK with a PR adding:

  • --detailed-report-level <level> where level: ['short', 'all'] - default short

This would leave the door open to introduce:

  • --detailed-report-format <format> where format: ['txt', 'json'] - default txt
  • --detailed-report-out-file <filename>

@mindplay-dk
Copy link

PR was long since merged - the depth option is in the current release. Any reason this can't be closed?

@mischnic mischnic closed this as completed Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants