2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-05-18 05:09:38 +03:00
Files
vue-meta/docs/guide/README.md
T
armandfarr 2b12905a79 docs: improve
Co-Authored-By: pimlie <pimlie@hotmail.com>
2019-04-20 10:46:06 +02:00

55 lines
1.4 KiB
Markdown

# Installation
:::tip 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](/guide/metainfo.html) or consult the [documentation](/guide/frameworks.html) of your framework for more information.
:::
## Download / CDN
[https://unpkg.com/vue-meta/lib/vue-meta.js](https://unpkg.com/vue-meta/lib/vue-meta.js)
For the latest version in the v1.x branch you can use:<br/>
[https://unpkg.com/vue-meta@1/lib/vue-meta.js](https://unpkg.com/vue-meta@1/lib/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):**
```html
<script src="https://unpkg.com/vue-meta/lib/vue-meta.js"></script>
```
**Minified:**
```html
<script src="https://unpkg.com/vue-meta/lib/vue-meta.min.js"></script>
```
## Package manager
**Yarn**
```sh
$ yarn add vue-meta
```
**npm**
```sh
$ npm i vue-meta
```
### Install
:::warning 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](/guide/frameworks.html) 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:
```js
import Vue from 'vue'
import VueMeta from 'vue-meta'
Vue.use(VueMeta)
```