stereobooster/react-snap

Crawl only html documents

开放

#339 创建于 2019年2月28日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (403 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (4,982 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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"]

贡献者指南