-
|
Hello, I'm looking for a way to integrate VuePress inside a Vue app. So users would be able to access the documentation from Vue app sidebar menu (with SPA) only if they are connected to the Vue app. Can I achieve this without building Vuepress separately ? |
Beta Was this translation helpful? Give feedback.
Answered by
meteorlxy
Apr 8, 2021
Replies: 1 comment 1 reply
-
|
I would say NO for the complexity. However, I think it's technically possible:
That's interesting, so I provide some ideas for you. It requires you to fully understand the implementation principle of vuepress. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would say NO for the complexity.
However, I think it's technically possible:
app.init()andapp.prepare(), then skip the built-in dev / build, and use your own build process. See@vuepress/clipackage for example usage.aliasanddefinehook that provided by Plugin API. See@vuepress/bundler-webpackor@vuepress/bundler-vitepackage for details.@vuepress/clientpacakge in your Vue app:createVueAppmethod that provided by@vuepress/client/src/app.tsto create a new Vue app instance and a new Vue Router instance. …