Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwo to use #12

Closed
tofulife opened this issue Mar 17, 2020 · 3 comments
Closed

hwo to use #12

tofulife opened this issue Mar 17, 2020 · 3 comments

Comments

@tofulife
Copy link

how to use?
i.e. how to set the value of __dirName

@ozum
Copy link
Owner

ozum commented Mar 17, 2020

what do you mean by "set the value of __dirName"? __dirName is read only variable provided by node. You can use your own path if you wish, but I don't see any use of this.

Nonetheless here it is:

.vuepress/config.js

const getConfig = require("vuepress-bar");

module.exports = {
  themeConfig: {
    ...getConfig('your/custom/path')
  }
};

@tofulife
Copy link
Author

Thanks. I have not learned node, when I use __dirName , the compiler shows "__dirName is not defined". So, it will be more friendly for beginners,if you can change "__dirName" to "dirname".

@ozum
Copy link
Owner

ozum commented Mar 17, 2020

@tofulife __dirname is not defined by me. It is global variable of node.js and cannot be changed or renamed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants