Accessing Data in .vuepress/config.ts from somewhere else #704
-
For example, how do I access global variables defined in .vuepress/config.ts from .vue files or clientAppEnhance.ts? I don't find those global variables in getCurrentInstance() in .vue files or from app argument exposed in clientAppEnhance.ts. Althought I defined something in config.ts, it is not globally defined outside of it |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am not getting your point. If you want to access something in node side from client. Use define options in plugin API, then you can access them in files directly like local variable. They will be replaced by the thing you defined while processing files. |
Beta Was this translation helpful? Give feedback.
I am not getting your point.
If you want to access something in node side from client. Use define options in plugin API, then you can access them in files directly like local variable. They will be replaced by the thing you defined while processing files.