chore: changelog

This commit is contained in:
chenjiahan 2022-07-17 15:59:01 +08:00
parent 219c2d04d8
commit 9d187add3d
5 changed files with 19 additions and 7 deletions

View File

@ -66,7 +66,7 @@
"vue": ">= 2.6.0" "vue": ">= 2.6.0"
}, },
"devDependencies": { "devDependencies": {
"@vant/cli": "^2.11.7", "@vant/cli": "^2.11.8",
"prettier": "2.1.0", "prettier": "2.1.0",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-template-compiler": "^2.6.12" "vue-template-compiler": "^2.6.12"

View File

@ -1,5 +1,11 @@
# 更新日志 # 更新日志
## v2.11.8 ~ 2.11.9
`2022-07-17`
- 新增 `site.headHtml` 配置项
## v2.11.7 ## v2.11.7
`2022-05-28` `2022-05-28`

View File

@ -19,8 +19,8 @@
<meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<% if (headHtml) { %> <% if (htmlWebpackPlugin.options.baiduAnalytics) { %>
<%- headHtml %> <%- htmlWebpackPlugin.options.baiduAnalytics %>
<% } %> <% } %>
<% if (htmlWebpackPlugin.options.usingSearch) { %> <% if (htmlWebpackPlugin.options.usingSearch) { %>
<link <link

View File

@ -19,6 +19,12 @@ module.exports = {
baiduAnalytics: { baiduAnalytics: {
seed: 'ad6b5732c36321f2dafed737ac2da92f', seed: 'ad6b5732c36321f2dafed737ac2da92f',
}, },
headHtml: `<script>
if (location.host === 'youzan.github.io') {
location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
}
</script>
`,
htmlPluginOptions: { htmlPluginOptions: {
meta: { meta: {
'docsearch:version': 'v2', 'docsearch:version': 'v2',

View File

@ -1684,10 +1684,10 @@
semver "^6.3.0" semver "^6.3.0"
tsutils "^3.17.1" tsutils "^3.17.1"
"@vant/cli@^2.11.7": "@vant/cli@^2.11.8":
version "2.11.7" version "2.11.8"
resolved "https://registry.npmjs.org/@vant/cli/-/cli-2.11.7.tgz#24742903b0ccbaaddaef5fd9fdad04f749103910" resolved "https://registry.npmmirror.com/@vant/cli/-/cli-2.11.8.tgz#5bb79a87d266d183dbbae6948132f6b64b232252"
integrity sha512-x9tgHaYfz1Pbi80C3vvgmobpLgHA3V5934/7Xqpz7gmrjSK0z+Qojx/eOioi9xS9pS655j1nbw5pPzz5+5Y/Xw== integrity sha512-TNt0e3L1xMrEtR2tTSrBNnp9Fy+XVee376IbWWIwIL1Xj5y3xg6ECf1iOerXLkshLimRrYLz1Rl9vdSmeoEjfg==
dependencies: dependencies:
"@babel/core" "^7.10.1" "@babel/core" "^7.10.1"
"@babel/plugin-syntax-jsx" "^7.10.1" "@babel/plugin-syntax-jsx" "^7.10.1"