fix(build): show workaround on encountering dead links (#822) (#868)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/871/head
JounQin 2 years ago committed by GitHub
parent e33955e769
commit 29d44e7a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,11 @@ export async function createMarkdownToVueRenderFn(
const recordDeadLink = (url: string) => { const recordDeadLink = (url: string) => {
console.warn( console.warn(
c.yellow( c.yellow(
`\n(!) Found dead link ${c.cyan(url)} in file ${c.white(c.dim(file))}` `\n(!) Found dead link ${c.cyan(url)} in file ${c.white(
c.dim(file)
)}\nIf it is intended, you can use:\n ${c.cyan(
`<a href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`
)}`
) )
) )
deadLinks.push(url) deadLinks.push(url)

Loading…
Cancel
Save