mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix(@vant/cli): explicitly write the description field in injectHtml (#10113)
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user