1
0
mirror of synced 2026-03-23 11:18:36 +08:00

feat(docs): 添加搜索

This commit is contained in:
roymondchen
2022-06-14 14:50:38 +08:00
committed by jia000
parent 470033487c
commit 4e812c396d
3 changed files with 24 additions and 3 deletions

View File

@@ -21,6 +21,7 @@
"@vuepress/bundler-vite": "^2.0.0-beta.48",
"@vuepress/cli": "^2.0.0-beta.48",
"@vuepress/client": "^2.0.0-beta.48",
"@vuepress/plugin-search": "^2.0.0-beta.48",
"@vuepress/theme-default": "^2.0.0-beta.48",
"vuepress": "^2.0.0-beta.48"
}

View File

@@ -1,6 +1,7 @@
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from '@vuepress/cli'
import { defaultTheme } from '@vuepress/theme-default'
import { viteBundler } from '@vuepress/bundler-vite';
import { defineUserConfig } from '@vuepress/cli';
import { defaultTheme } from '@vuepress/theme-default';
const { searchPlugin } = require('@vuepress/plugin-search');
import path from 'path';
@@ -172,6 +173,9 @@ export default defineUserConfig({
contributors: false,
}),
plugins: [
searchPlugin(),
],
bundler: viteBundler({
vuePluginOptions: {
template: {