Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} = ctx
const headStr = `
${favicon ? `` : ''}
${head.meta ? generateMetaTags(head.meta) : ''}
${head.links ? generateLinkTags(head.links) : ''}
${head.raw ? generateRawTags(head.raw) : ''}
${head.scripts ? generateScriptTags(head.scripts) : ''}
${generateCSSReferences(css, publicPath)}`
const footerStr = `
${body.raw ? generateRawTags(body.raw) : ''}
${body.scripts ? generateScriptTags(body.scripts) : ''}
${generateJSReferences(js, publicPath)}`
const doc = ctags.html(
template({
title,
description,
lang,
head: headStr,
footer: footerStr,
publicUrl: getPublicUrl(config, dev),
})
)
return trimWhitespace ? ctags.oneLineTrim(doc) : emptyLineTrim(doc)
}