Closed Rajan closed 6 years ago
OK. I'll look into it when I'm free.
I've tried it myself. I actually work.
Have you added this plugin into your Nuxt config?
plugins/vue-github-buttons.js
:
import Vue from 'vue';
import VueGitHubButtons from 'vue-github-buttons';
Vue.use(VueGitHubButtons);
import 'vue-github-buttons/dist/vue-github-buttons.css';
nuxt.config.js
:
module.exports = {
plugins: [
'~/plugins/vue-github-buttons'
]
};
v2.1.1
released.
Now, you don't need to write plugin by yourself anymore.
New version provides modules for easier using with Nuxt.
Create a Nuxt.js Vue application and try to display stars button and it'll show this in the console.