-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
43 lines (42 loc) · 1.18 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import FMMode from 'frontmatter-markdown-loader/mode'
import path from 'path'
export default {
head: {
title: 'kitsu\'s blog',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'og:title', property: 'og:title', content: 'kitsu\'s blog' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:image', property: 'og:image', content: '/141.jpg' },
{ hid: 'og:url', property: 'og:url', content: process.env.VERCEL_URL },
{ hid: 'og:locale', property: 'og:locale', content: 'en' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
css: [],
plugins: [
{ src: '~/plugins/prism', mode: 'client' }
],
components: false,
buildModules: [],
build: {
extend (config, _ctx) {
config.module.rules.push(
{
test: /\.md$/,
loader: 'frontmatter-markdown-loader',
include: path.resolve(__dirname, 'articles'),
options: {
mode: [FMMode.VUE_COMPONENT],
vue: {
root: 'markdown-body'
}
}
}
)
}
}
}