Skip to content

Read sourceDir during config stage #650

Answered by Mister-Hope
Hecatron asked this question in Q&A
Discussion options

You must be logged in to vote

You can try to invoke it in vuepress config file.

import { defineUserConfig} from '@vuepress/cli';
import { helper } from 'your-plugin'

const config = defineUserConfig({
  // ...
});

// do somthing with helper using the config
helper(config)

return config;

And I am assuming you know how to infer source Dir from args and pwd.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants