httparchive.org icon indicating copy to clipboard operation
httparchive.org copied to clipboard

Enable source map collection in Lighthouse

Open rviscomi opened this issue 5 years ago • 0 comments

Per @connorjclark:

all you'd need to do is run Lighthouse (as http archive already does) but with the -G option to save the artifacts. In artifacts.json, you read .SourceMaps to get all the maps found for the page. here's the type for it: https://github.com/GoogleChrome/lighthouse/blob/master/types/artifacts.d.ts#L290 . "RawSourceMap" is just the source map itself, as an object.

rviscomi avatar Jul 07 '20 17:07 rviscomi