vuepress-plugin-live
vuepress-plugin-live copied to clipboard
vitepress support
firstly,thank you for your work. Is there a plan to support vitepress?
There is a plan, but it will not be called vuepress-plugin-live
I do not have this as a top priority right now. If you have a few cycles to start the plugin on your own, here is my brain download:
If you need it, creating it is very often the best way to have it quickly.
-
vuepress
andvitepress
both use markdown-it to process markdown. So the markdown plugin should be able to be used the same. -
vue-live
is now compatible withvite
, so you should not have any trouble with the use ofvue-live
as a component in avitepress
website - I have still to figure out a few things:
- how to pass options to the
theme
- how to do the custom layout if we want to keep this option.
- how to package it all as a simple-to-install plugin
- how to pass options to the
Thanks for your brain download! I will try create it maybe later.
I have tryied put repl
into vitepress
, but this way is not convenience enough.
There is one more thing I have not figured out how to do.
To compile templates, Vue needs its bundle time version in the browser. To do that, we set an alias of vue
to vue/dist/vue.esm-bundler.js
.
Sadly, import alias do not seem to be implemented in VitePress (yet). I believe we would need some custom plugin.
Remeber. that VitePress is still alpha 😉
Yes! I have tried to merge your vite-vue-live to vitepress
proj but failed. Vitepress ignore the config of vite.alias
.
So I try to merge Ant Design Vue Playground into my proj, it works. But can not import local components into repl real-time.
In consideration of VitePress
still a alpha version, I'll try create a plugin later.