feat(docs): 添加搜索
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user