stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Added new option to disable page skipping on page error. #400

Open brizandrew opened 4 years ago

brizandrew commented 4 years ago

Description

As far as I can tell, react-snap ignores pages when there is an error that is thrown. While this is a smart default, there are times when errors being thrown are the result of an external script the developer is not responsible for. In these cases, there should be an option to ignore those errors and take a snapshot of the page anyway.

For example, in our newsroom we have to load ad-tech code (or ads themselves) that can sometimes throw errors. These errors are not our concern as long as the main content loads correctly. But without the option provided in this pull request that would not be possible.

Let me know if you have any questions.

Thanks!