We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3cfe0b commit 3825998Copy full SHA for 3825998
src/.vuepress/config.ts
@@ -1,9 +1,12 @@
1
import { webpackBundler } from '@vuepress/bundler-webpack'
2
import { defineUserConfig } from "vuepress";
3
+import { getDirname, path } from 'vuepress/utils'
4
import theme from "./theme.js";
5
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
6
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
7
8
+const __dirname = getDirname(import.meta.url)
9
+
10
export default defineUserConfig({
11
base: "/",
12
@@ -47,7 +50,7 @@ export default defineUserConfig({
47
50
id: 'G-CN4DXNE50P',
48
51
}),
49
52
registerComponentsPlugin({
- componentsDir: 'src/.vuepress/components',
53
+ componentsDir: path.resolve(__dirname, './components'),
54
55
],
56
0 commit comments