-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgridsome.config.js
71 lines (68 loc) · 1.48 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
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
const tailwind = require("tailwindcss");
const postcssPlugins = [tailwind()];
module.exports = {
siteName: "JFrog Security Research",
siteUrl: "https://research.jfrog.com",
plugins: [
{
use: "@gridsome/source-filesystem",
options: {
path: "vulnerabilities/**/*.md",
typeName: "Post",
remark: {},
},
},
{
use: "@gridsome/source-filesystem",
options: {
path: "model-threats/**/*.md",
typeName: "ModelThreatsPost",
remark: {},
},
},
{
use: "@gridsome/plugin-sitemap",
},
{
use: 'gridsome-plugin-gtm',
options: {
id: 'GTM-T6MF8M',
enabled: true,
}
}
],
transformers: {
remark: {
plugins: [
[
"remark-autolink-headings",
{
behavior: "wrap",
linkProperties: {
ariaHidden: "true",
tabIndex: -1,
},
},
],
],
},
},
css: {
loaderOptions: {
postcss: {
plugins: postcssPlugins,
},
},
},
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.use('vue-svg-loader')
.loader('vue-svg-loader')
}
};