怎么添加插件呢。为什么我这样添加插件会报错 #1577
-
config.js
我觉得应该是语法错误 |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Jul 19, 2024
Replies: 1 comment
-
请自己学习js,这不是我们的工作 import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress/cli'
import { viteBundler } from '@vuepress/bundler-vite'
import { searchPlugin } from '@vuepress/plugin-search'
export default defineUserConfig({
lang: 'en-US',
title: 'VuePress',
description: 'My first VuePress Site',
theme: defaultTheme({
logo: 'https://git-scm.com/images/logos/downloads/Git-Icon-1788C.svg',
colorModeSwitch: '',
colorMode: 'dark',
navbar: ['/', '/get-started'],
}),
bundler: viteBundler(),
plugins: [
searchPlugin({
// 配置项
})
],
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请自己学习js,这不是我们的工作