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

--save-assets: kill off screenshots.html/screenshots.json #4187

Closed
paulirish opened this issue Jan 5, 2018 · 8 comments
Closed

--save-assets: kill off screenshots.html/screenshots.json #4187

paulirish opened this issue Jan 5, 2018 · 8 comments

Comments

@paulirish
Copy link
Member

AFAIK, we don't have any more customers of these.

@benschwarz @alekseykulikov

you guys good with this?

@benschwarz
Copy link
Contributor

Yep. I'm not using the output of --save-assets.

@wardpeet
Copy link
Collaborator

wardpeet commented Jan 6, 2018

@paulirish if we kill this of is their a manual way to get screenshots going?
Just wondering as I might need this in the future 😛

@patrickhulce
Copy link
Collaborator

@wardpeet yeah you'll still be able to fairly easily grab them from the trace :)

it's ~20 lines

@paulirish
Copy link
Member Author

Yah. easy enough to restore the https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/gather/computed/screenshots.js computed artifact later if we need it again.

@wardpeet
Copy link
Collaborator

wardpeet commented Jan 8, 2018

thanks for explaining, didn't knew how it worked actually

@wardpeet
Copy link
Collaborator

@paulirish i believe we can close this?

@brendankenny
Copy link
Member

Not yet :)

const screenshotsHTMLFilename = `${pathWithBasename}-${index}.screenshots.html`;
fs.writeFileSync(screenshotsHTMLFilename, passAssets.screenshotsHTML);
log.log('saveAssets', 'screenshots saved to disk: ' + screenshotsHTMLFilename);
const screenshotsJSONFilename = `${pathWithBasename}-${index}.screenshots.json`;
fs.writeFileSync(screenshotsJSONFilename, JSON.stringify(passAssets.screenshots, null, 2));
log.log('saveAssets', 'screenshots saved to disk: ' + screenshotsJSONFilename);

(we really should delete)

@paulirish
Copy link
Member Author

fixed by #6066

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