We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b465d3e commit 0316f14Copy full SHA for 0316f14
packages/vite/src/node/plugins/html.ts
@@ -545,7 +545,7 @@ function injectToHead(
545
} else {
546
// inject before head close
547
if (headInjectRE.test(html)) {
548
- return html.replace(headInjectRE, `${tagsHtml}\n$&`)
+ return html.replace(headInjectRE, `${tagsHtml}\n $&`)
549
}
550
551
// if no <head> tag is present, just prepend
@@ -592,7 +592,7 @@ function serializeTags(tags: HtmlTagDescriptor['children']): string {
592
if (typeof tags === 'string') {
593
return tags
594
} else if (tags) {
595
- return tags.map(serializeTag).join(`\n `)
+ return ` ${tags.map(serializeTag).join('\n ')}`
596
597
return ''
598
0 commit comments