fix(@vant/cli): explicitly write the description field in injectHtml (#10113)

This commit is contained in:
codpoe
2021-12-30 09:55:42 +08:00
committed by GitHub
parent 9e0b10309f
commit 1f772ad232
3 changed files with 7 additions and 0 deletions

View File

@@ -136,6 +136,9 @@ export function getViteConfigForSiteDev(): InlineConfig {
data: {
...siteConfig,
title,
// `description` is used by the HTML ejs template,
// so it needs to be written explicitly here to avoid error: description is not defined
description: siteConfig.description,
baiduAnalytics,
enableVConsole,
meta: getHTMLMeta(vantConfig),