chore(cli): imporve site search result

This commit is contained in:
陈嘉涵 2020-01-11 07:47:19 +08:00
parent 0f3cc3c633
commit e18e36d95a
4 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="description" content="<%= htmlWebpackPlugin.options.description %>" />
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.logo %>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
<meta http-Equiv="Cache-Control" Content="no-cache" />

View File

@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="description" content="<%= htmlWebpackPlugin.options.description %>" />
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.logo %>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
<meta http-Equiv="Cache-Control" Content="no-cache" />

View File

@ -80,6 +80,7 @@ export const siteDevBaseConfig = merge(baseConfig as any, {
new HtmlWebpackPlugin({
title,
logo: siteConfig.logo,
description: siteConfig.description,
chunks: ['chunks', 'site-desktop'],
template: join(__dirname, '../../site/desktop/index.html'),
filename: 'index.html',
@ -88,6 +89,7 @@ export const siteDevBaseConfig = merge(baseConfig as any, {
new HtmlWebpackPlugin({
title,
logo: siteConfig.logo,
description: siteConfig.description,
chunks: ['chunks', 'site-mobile'],
template: join(__dirname, '../../site/mobile/index.html'),
filename: 'mobile.html',

View File

@ -10,7 +10,7 @@ module.exports = {
}
},
site: {
defaultLang: 'en-US',
defaultLang: 'zh-CN',
versions: [
{ label: '1.x', link: 'https://youzan.github.io/vant/1.x/' }
],