I am trying to use v-wave in VuePress 2 (the VuePress powered by Vue 3)
I followed the docs, try to use the v-wave as a local plugin of the VuePress 2
.vuepress/config.js
const vwave = require('path/to/v-wave.js');
module.exports = {
plugins: [
(options, app) => {
app.use(vwave); // the `app` is a instance of VuePress not Vue
return {name: 'v-wave'};
}
]
};
But it didn't work, because the app isn't the Vue instance but the VuePress.
How can I install v-wave to make it work in VuePress 2?
Thanks a lot!