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.jsInstallation - 图1

For the latest version in the v1.x branch you can use:https://unpkg.com/vue-meta@1/dist/vue-meta.jsInstallation - 图2

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):

  1. <script src="https://unpkg.com/vue-meta/dist/vue-meta.js"></script>

Minified:

  1. <script src="https://unpkg.com/vue-meta/dist/vue-meta.min.js"></script>

Package manager

Yarn

  1. $ yarn add vue-meta

npm

  1. $ 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:

  1. import Vue from 'vue'
  2. import VueMeta from 'vue-meta'
  3. Vue.use(VueMeta)