mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(@vant/cli): explicitly write the description field in injectHtml (#10113)
This commit is contained in:
parent
9e0b10309f
commit
1f772ad232
@ -3,7 +3,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title><%= title %></title>
|
<title><%= title %></title>
|
||||||
|
<% if (description) { %>
|
||||||
<meta name="description" content="<%= description %>" />
|
<meta name="description" content="<%= description %>" />
|
||||||
|
<% } %>
|
||||||
<link rel="icon" type="image/png" href="<%= logo %>" />
|
<link rel="icon" type="image/png" href="<%= logo %>" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title><%- title %></title>
|
<title><%- title %></title>
|
||||||
|
<% if (description) { %>
|
||||||
<meta name="description" content="<%- description %>" />
|
<meta name="description" content="<%- description %>" />
|
||||||
|
<% } %>
|
||||||
<link rel="icon" type="image/png" href="<%- logo %>" />
|
<link rel="icon" type="image/png" href="<%- logo %>" />
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
|
@ -136,6 +136,9 @@ export function getViteConfigForSiteDev(): InlineConfig {
|
|||||||
data: {
|
data: {
|
||||||
...siteConfig,
|
...siteConfig,
|
||||||
title,
|
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,
|
baiduAnalytics,
|
||||||
enableVConsole,
|
enableVConsole,
|
||||||
meta: getHTMLMeta(vantConfig),
|
meta: getHTMLMeta(vantConfig),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user