This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
/* | |
** Headers of the page | |
*/ | |
head: { | |
title: 'example', | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
head: { | |
title: 'example', | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }, | |
// example vue-meta | |
{ hid: 'title', name: 'title', content: 'Nuxt.js project' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<!-- Navigation --> | |
<Navigation/> | |
<!-- Content --> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-9 col-lg-9"> | |
<!-- Content --> | |
<nuxt/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
{ hid: 'title', name: 'title', content: 'Nuxt.js project' } | |
], | |
link: [ | |
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, | |
{ rel: 'stylesheet', type: 'text/css', href: 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.3/css/bootstrap.min.css' } | |
] | |
}, | |
/* | |
** Custom SCSS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
/* | |
** Run ESLint on save | |
*/ | |
extend (config, ctx) { | |
if (ctx.isDev && ctx.client) { | |
config.module.rules.push({ | |
enforce: 'pre', | |
test: /\.(js|vue)$/, | |
loader: 'eslint-loader', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
function changeLoaderOptions (loaders) { | |
if (loaders) { | |
for (const loader of loaders) { | |
if (loader.loader === 'sass-loader') { | |
Object.assign(loader.options, { | |
includePaths: ['./assets'], | |
// data: '@import "_imports";' | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
link: [ | |
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, | |
{ rel: 'stylesheet', type: 'text/css', href: 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.3/css/bootstrap.min.css' }, | |
{ rel: 'stylesheet', type: 'text/css', href: 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.0.7/css/swiper.css' } | |
] | |
...a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import VueAwesomeSwiper from 'vue-awesome-swiper/dist/ssr' | |
Vue.use(VueAwesomeSwiper) |