Configure JSON output in more detail to optimize storage? #12151
Unanswered
Visiting4776
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There are no options or settings that automatically reduce the volume of the JSON beyond the filters that you've already discovered ( What you can trim is highly dependent on the use case. There is plenty of data you might not be using that will be more effective to remove than just the string descriptions. Most mass collections choose to strip the embedded screenshots, full page screenshot, debug timings, i18n data, and just compress the rest. You'll probably want to just go through the LHR definition and audit list to see what you don't care about. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I haven't found anything about this in the docs - apologies if I missed anything!
We're running lighthouse, via the node module, on a list of websites, weekly and 5 times per website. We save the output as JSON-files to get the full details that aren't available from just saving as CSV.
Is there any way to reduce the file size of the generated JSON files as they are created? For example, the description for each audit is saved in each JSON file, creating redundancies. Also, the screenshot feature is really awesome, but we would prefer only the final screenshot to be saved.
Presumably this would be done through the
settings
property of a custom configuration file, but I haven't found the option for a lighter JSON output here.I'm aware of the config option 'onlyCategories', but I'm trying to collect as much information as possible while reducing redundancies. Currently I have my node script strip the descriptions from the saved reports after the fact, I'm just wondering if there is a better option. Thank you for your attention and this tool, it's really useful!
Beta Was this translation helpful? Give feedback.
All reactions