From 7beef3b8cca47bf84b4d5e2f89be6f35f8a435d4 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 28 May 2022 14:49:46 +0800 Subject: [PATCH] chore: fix cdn link (#10643) --- docs/markdown/quickstart.en-US.md | 6 +++--- docs/markdown/quickstart.zh-CN.md | 6 +++--- packages/vant-cli/site/desktop/index.html | 8 ++++++-- packages/vant-cli/src/config/webpack.site.dev.ts | 1 + packages/vant-touch-emulator/README.md | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/docs/markdown/quickstart.en-US.md b/docs/markdown/quickstart.en-US.md index 3d5734450..a14fd6ac8 100644 --- a/docs/markdown/quickstart.en-US.md +++ b/docs/markdown/quickstart.en-US.md @@ -20,12 +20,12 @@ The easiest way to use Vant is to include a CDN link in the html file, after whi - - + + - + + + <% if (htmlWebpackPlugin.options.usingSearch) { %> + + <% } %> diff --git a/packages/vant-cli/src/config/webpack.site.dev.ts b/packages/vant-cli/src/config/webpack.site.dev.ts index 74dd2562d..be65f1dc2 100644 --- a/packages/vant-cli/src/config/webpack.site.dev.ts +++ b/packages/vant-cli/src/config/webpack.site.dev.ts @@ -85,6 +85,7 @@ export function getSiteDevBaseConfig(): WebpackConfig { title, logo: siteConfig.logo, description: siteConfig.description, + usingSearch: !!siteConfig.searchConfig, chunks: ['chunks', 'site-desktop'], template: join(__dirname, '../../site/desktop/index.html'), filename: 'index.html', diff --git a/packages/vant-touch-emulator/README.md b/packages/vant-touch-emulator/README.md index af85279e7..9b8405cbe 100644 --- a/packages/vant-touch-emulator/README.md +++ b/packages/vant-touch-emulator/README.md @@ -27,5 +27,5 @@ import '@vant/touch-emulator'; ## CDN 引入 ```html - + ```