Skip to content

Instantly share code, notes, and snippets.

@masterde
masterde / Fomantic-ui-less nuxtjs configuration.md
Last active September 17, 2019 20:03 — forked from citricacid-pl/Semantic-ui-less nuxtjs configuration.md
How to make fomantic-ui-less work with Nuxt.js

Installation

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:

@masterde
masterde / nuxt.config.js
Created June 13, 2019 04:18 — forked from mjgartendev/nuxt.config.js
An example nuxt.config.js file heavily commented from the nuxt and vue-meta documentation examples
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