vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
28 stars 36 forks source link

[Feature request] Client config #58

Closed Mister-Hope closed 6 months ago

Mister-Hope commented 2 years ago

Clear and concise description of the problem

Provide client config file for theme and plugins, so that user can modify client-only options to get an HMR instead of a server restart.

Suggested solution

See https://github.com/vuepress/vuepress-next/issues/914#issuecomment-1143325774

Alternative

No response

Additional context

No response

meteorlxy commented 2 years ago

Would introduce lots of breaking changes for sure.

devPaulRS commented 2 years ago

@meteorlxy | @Mister-Hope

I see you guys have started to combine the client config file, but this doesn't seem to be ready yet for theme config. Any chance of adding this anytime soon?

I would like to have the navbar and menu being set in the client.ts/client.js and would very much appreciate it as it would stop the restarting the server everytime i dynamically add a menu item.

Also if possible when this is added as a request that we can have a nice detailed example with the navbar in the vuepress documentation, as it would make a lot of people happy.

meteorlxy commented 8 months ago

It might be theme / plugin scope then. Moving to ecosystem repo

Mister-Hope commented 7 months ago

Nope, like I explain in the core repo pr, it should be a core thing to let it being accessible in enhance lifecycle