forked from ginetta/ginetta-gatsby-source-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
38 lines (37 loc) · 903 Bytes
/
gatsby-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
const sanitizeHtml = require('sanitize-html');
module.exports = {
siteMetadata: {
title: `Pandas Eating Lots`,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `src`,
path: `${__dirname}/src/`,
},
},
{
resolve: 'gatsby-plugin-cockpit',
options: {
cockpitConfig: {
baseURL: 'http://localhost:8888',
folder: '/cockpit',
accessToken: '52e96b14e61f3d3c5e5723bd9b9927',
sanitizeHtmlConfig: {
// https://www.npmjs.com/package/sanitize-html
allowedTags: sanitizeHtml.defaults.allowedTags.concat([ 'img' ])
},
},
},
},
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
`gatsby-plugin-glamor`,
`gatsby-plugin-react-next`,
],
};