stereobooster/react-snap

Crawl only html documents

Open

#339 建立於 2019年2月28日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (4,982 star) (403 fork)batch import
enhancementhelp wanted

描述

Feature Request

Is your feature request related to a problem? Please describe. Puppeteer does not handle PDF files. react-snap will crawl to them if links exist and the process will crash. There doesn't seem to be a way to ignore this.

Describe the solution you'd like I'd like the ability to be able to specify files/paths/globs to ignore as an option.

Describe alternatives you've considered I've looked at other snapshot libraries but prefer this one. I've looked at whether it's possible to pass an argument to puppeteer to handle this but it doesn't seem to be.

Teachability, Documentation, Adoption, Migration Strategy I'd imagine an option in package.json, like:

ignore: ["**.pdf"]

貢獻者指南