Installation
Using a framework?
Are you using a framework like Nuxt.js, Gridsome or another one which uses vue-meta? Then vue-meta
should already be installed and you can skip to Usage or consult the documentation of your framework for more information.
Download / CDN
https://unpkg.com/vue-meta/dist/vue-meta.js
For the latest version in the v1.x branch you can use:https://unpkg.com/vue-meta@1/dist/vue-meta.js
Or you can replace 1
with the full version number you wish to use.
If you include vue-meta after Vue it will install automatically
Unminified (suggested only for dev):
<script src="https://unpkg.com/vue-meta/dist/vue-meta.js"></script>
Minified:
<script src="https://unpkg.com/vue-meta/dist/vue-meta.min.js"></script>
Package manager
Yarn
$ yarn add vue-meta
npm
$ npm i vue-meta
Install
Using a framework?
If you use a framework like Nuxt.js or Gridsome, vue-meta comes pre-installed and this step is most likely not required. Consult the documentation of your framework for more information
If you add vue-meta
with a package manager, you will need to install the vue-meta
plugin manually:
import Vue from 'vue'
import VueMeta from 'vue-meta'
Vue.use(VueMeta)