First of all we need to install Nuxt.js
vue init nuxt-community/starter-template <project-name>
Then we have to follow instructions. Finally we need to install some additional packages:
module.exports = { | |
/* | |
Headers of the page | |
- Nuxt.js uses vue-meta to update the headers and html attributes of your application. | |
- Nuxt.js configures vue-meta with these options: | |
{ | |
keyName: 'head', // the component option name that vue-meta looks for meta info on. | |
attribute: 'data-n-head', // the attribute name vue-meta adds to the tags it observes | |
ssrAttribute: 'data-n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered | |
tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag |