mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-12 17:02:37 +08:00
Compare commits
10 Commits
0931672595
...
ffb819181a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffb819181a | ||
|
|
ce6c2a240f | ||
|
|
107511aa54 | ||
|
|
c4398dfa82 | ||
|
|
1817a43aa9 | ||
|
|
f3413d39e0 | ||
|
|
9d187add3d | ||
|
|
219c2d04d8 | ||
|
|
d4ab4214ef | ||
|
|
27c3cbcf89 |
2
.github/workflows/deploy-v2-site.yml
vendored
2
.github/workflows/deploy-v2-site.yml
vendored
@ -6,6 +6,8 @@ on:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
"vue": ">= 2.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vant/cli": "^2.11.7",
|
||||
"@vant/cli": "^2.11.11",
|
||||
"prettier": "2.1.0",
|
||||
"vue": "^2.6.12",
|
||||
"vue-template-compiler": "^2.6.12"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# 更新日志
|
||||
|
||||
## v2.11.8 ~ 2.11.11
|
||||
|
||||
`2022-07-17`
|
||||
|
||||
- 新增 `site.headHtml` 配置项
|
||||
|
||||
## v2.11.7
|
||||
|
||||
`2022-05-28`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vant/cli",
|
||||
"version": "2.11.7",
|
||||
"version": "2.11.11",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
|
||||
@ -19,6 +19,9 @@
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<% if (htmlWebpackPlugin.options.headHtml) { %>
|
||||
<%= htmlWebpackPlugin.options.headHtml %>
|
||||
<% } %>
|
||||
<% if (htmlWebpackPlugin.options.usingSearch) { %>
|
||||
<link
|
||||
href="https://fastly.jsdelivr.net/docsearch.js/2/docsearch.min.css"
|
||||
|
||||
@ -19,6 +19,9 @@
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<% if (htmlWebpackPlugin.options.headHtml) { %>
|
||||
<%= htmlWebpackPlugin.options.headHtml %>
|
||||
<% } %>
|
||||
<% if (htmlWebpackPlugin.options.baiduAnalytics) { %>
|
||||
<script>
|
||||
// avoid to load analytics in iframe
|
||||
|
||||
@ -15,6 +15,7 @@ import {
|
||||
|
||||
export function getSiteDevBaseConfig(): WebpackConfig {
|
||||
const vantConfig = getVantConfig();
|
||||
const headHtml = get(vantConfig, 'site.headHtml');
|
||||
const baiduAnalytics = get(vantConfig, 'site.baiduAnalytics');
|
||||
|
||||
function getSiteConfig() {
|
||||
@ -89,6 +90,7 @@ export function getSiteDevBaseConfig(): WebpackConfig {
|
||||
chunks: ['chunks', 'site-desktop'],
|
||||
template: join(__dirname, '../../site/desktop/index.html'),
|
||||
filename: 'index.html',
|
||||
headHtml,
|
||||
baiduAnalytics,
|
||||
...htmlPluginOptions,
|
||||
}),
|
||||
@ -99,6 +101,7 @@ export function getSiteDevBaseConfig(): WebpackConfig {
|
||||
chunks: ['chunks', 'site-mobile'],
|
||||
template: join(__dirname, '../../site/mobile/index.html'),
|
||||
filename: 'mobile.html',
|
||||
headHtml,
|
||||
baiduAnalytics,
|
||||
...htmlPluginOptions,
|
||||
}),
|
||||
|
||||
@ -19,6 +19,12 @@ module.exports = {
|
||||
baiduAnalytics: {
|
||||
seed: 'ad6b5732c36321f2dafed737ac2da92f',
|
||||
},
|
||||
headHtml: `<script>
|
||||
if (location.host === 'youzan.github.io') {
|
||||
location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
|
||||
}
|
||||
</script>
|
||||
`,
|
||||
htmlPluginOptions: {
|
||||
meta: {
|
||||
'docsearch:version': 'v2',
|
||||
|
||||
@ -1684,10 +1684,10 @@
|
||||
semver "^6.3.0"
|
||||
tsutils "^3.17.1"
|
||||
|
||||
"@vant/cli@^2.11.7":
|
||||
version "2.11.7"
|
||||
resolved "https://registry.npmjs.org/@vant/cli/-/cli-2.11.7.tgz#24742903b0ccbaaddaef5fd9fdad04f749103910"
|
||||
integrity sha512-x9tgHaYfz1Pbi80C3vvgmobpLgHA3V5934/7Xqpz7gmrjSK0z+Qojx/eOioi9xS9pS655j1nbw5pPzz5+5Y/Xw==
|
||||
"@vant/cli@^2.11.11":
|
||||
version "2.11.11"
|
||||
resolved "https://registry.npmjs.org/@vant/cli/-/cli-2.11.11.tgz#cd6877b2721df6a4d8ce932a8fc1c28bee63faad"
|
||||
integrity sha512-zPuER5XeZCXYRhB1g029T9Et4Uvit2mTcD23e3VXdd1oL99bG8JoiQa8ImzzsH32sPWdNAUYFwGO1gDZXgOEWA==
|
||||
dependencies:
|
||||
"@babel/core" "^7.10.1"
|
||||
"@babel/plugin-syntax-jsx" "^7.10.1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user