forked from maizzle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridsome.config.js
97 lines (93 loc) · 2.25 KB
/
gridsome.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
siteName: 'Maizzle',
siteDescription: "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS and advanced, email-specific post-processing.",
siteUrl: 'https://maizzle.com',
titleTemplate: `%s | Maizzle - Framework for Rapid Email Prototyping`,
icon: 'src/favicon.png',
transformers: {
remark: {
autolinkClassName: 'anchor-icon',
externalLinksTarget: '_blank',
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'],
plugins: [
'@gridsome/remark-prismjs'
]
}
},
plugins: [
{
use: '@gridsome/vue-remark',
options: {
baseDir: './content/docs',
route: '/docs/:slug',
typeName: 'Doc',
template: './src/templates/Doc.vue',
plugins: [
'@gridsome/remark-prismjs'
],
}
},
{
use: '@gridsome/vue-remark',
options: {
baseDir: './content/guides',
route: '/guides/:slug',
typeName: 'Guide',
template: './src/templates/Guide.vue',
plugins: [
'@gridsome/remark-prismjs'
],
}
},
{
use: '@gridsome/vue-remark',
options: {
baseDir: './content/starters',
route: '/starters/:slug',
typeName: 'Starter',
template: './src/templates/Starter.vue',
plugins: [
'@gridsome/remark-prismjs'
],
}
},
{
use: '@gridsome/vue-remark',
options: {
baseDir: './content/templates',
route: '/templates/:slug',
typeName: 'Template',
template: './src/templates/Template.vue',
plugins: [
'@gridsome/remark-prismjs'
],
}
},
{
use: '@gridsome/plugin-google-analytics',
options: {
id: 'UA-123145832-1'
}
},
{
use: '@gridsome/plugin-sitemap',
options: {
cacheTime: 600000, // default
}
},
],
chainWebpack: config => {
config.module
.rule('css')
.oneOf('normal')
.use('postcss-loader')
.tap(options => {
options.plugins.unshift(...[
require('postcss-import'),
require('postcss-nested'),
require('tailwindcss'),
])
return options
})
},
}