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 - + ```