-
Notifications
You must be signed in to change notification settings - Fork 18
/
nuxt.config.js
33 lines (32 loc) · 850 Bytes
/
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
import FMMode from 'frontmatter-markdown-loader/mode'
import path from 'path'
export default {
mode: 'universal',
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
]
},
loading: { color: '#fff' },
css: ['github-markdown-css'],
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'
}
}
}
)
}
}
}