import { webpackBundler } from "@vuepress/bundler-webpack"; import { defaultTheme } from "@vuepress/theme-default"; import { defineUserConfig } from "vuepress"; import theme from "./vuepress.theme"; export default defineUserConfig({ bundler: webpackBundler(), // 网站根 base: "/", // 网站标题 title: theme.navigatorTitle, // 默认主题 theme: defaultTheme(theme), // 打包目录 dest: "dist", // 缓存目录 cache: ".vuepress/.cache", // 临时目录 temp: ".vuepress/.temp", // 服务端口 port: 3000, // public 目录 public: "public", });