You can browse the documentation for Vue-Flags on the website.
npm install vue-flags
# Or if you prefer using yarn
yarn add vue-flags
In your main.js
file:
import Vue from "vue";
import VueFlags from "vue-flags";
import "vue-flags/assets/stylesheets/vue-flags.css";
Vue.use(VueFlags);
Create a new plugin in plugins/vueflags.js
:
import Vue from "vue";
import VueFlags from "vue-flags";
import "vue-flags/assets/stylesheets/vue-flags.css";
Vue.use(VueFlags);
Add this new plugin to nuxt.config.js
. Don't forget to set ssr to false as Vue-Flags only works in the browser for the time being.
{
// ...
plugins: [{ src: "@/plugins/vueflags.js", ssr: false }];
}
Are you using Vue-Flags on one of your projects? Tweet me so we can add your logo here. 👻
You are more than welcome to contribute to Vue-Flags. Just submit changes via pull request and I will review them before merging.
-
Fork it! 🤙
-
Create your feature branch:
git checkout -b my-new-feature
-
Commit your changes:
git commit -am "Add some feature"
-
Push to the branch:
git push origin my-new-feature
-
Submit a pull request 👍
Vue Dark Mode is MIT licensed.