-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
feat: Add option --report-json #323
base: master
Are you sure you want to change the base?
feat: Add option --report-json #323
Conversation
Any updates? |
i am also need it |
@siddharthkp |
|
||
const reportJson = results => { | ||
if(report){ | ||
fs.writeFileSync('bundlesize-report.json', JSON.stringify(results,null,2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to customize the report filename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course!
It's possible, if I add args--report-json-name
.
@kevindantas @siddharthkp is there any chance having this topic moved forward? |
The chances are higher if this is ported over to https://github.com/siddharthkp/bundlesize2 |
Any news? I think this feature is great |
Nope, I don't think I'll merge this to this repository, happy to accept a PR for https://github.com/siddharthkp/bundlesize2 though |
Description
When run
npm run bundlesize --report-json
, output filebundlesize-report.json
in working directory.Motivation and Context
We can edit data made from bundlesize
Screenshots (if appropriate):
Types of changes
Checklist:
Closes Add option report-json #322