trevorblades / gatsby-remark-check-links

🕵️‍♀️ Detects broken links and heading hashes in markdown
https://gatsbyjs.org/packages/gatsby-remark-check-links/
MIT License
11 stars 4 forks source link

Stop develop / build if errors is found #24

Closed pacocom closed 3 years ago

pacocom commented 3 years ago

I want to stop the build or develop is the error is found.

Example:

warn 2 broken links found on /4.2/ warn 727:236 ../../../docs/4.2/not-informed-data.html warn 728:240 ../../../docs/4.2/malformed-data.html

but the build contine.

Thanks.

pacocom commented 3 years ago

Sorry,

I can see in this line https://github.com/trevorblades/gatsby-remark-check-links/blob/master/src/index.ts#L164 that build proccess is cancel if broken links.

Thanks.