1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 21:51:50 +02:00
portfolio/gatsby-config.js

85 lines
1.9 KiB
JavaScript
Raw Normal View History

2018-05-04 01:58:43 +02:00
const path = require('path')
2018-05-07 15:39:42 +02:00
const fs = require('fs')
2018-05-05 00:17:26 +02:00
const yaml = require('js-yaml')
2018-05-07 15:39:42 +02:00
const meta = yaml.load(fs.readFileSync('./data/meta.yml', 'utf8'))
2018-05-07 19:31:10 +02:00
const { url, googleanalytics, matomoUrl, matomoSite } = meta
2018-04-08 00:19:54 +02:00
2018-04-06 17:24:35 +02:00
module.exports = {
siteMetadata: {
2018-04-21 02:03:45 +02:00
siteUrl: `${url}`,
2018-04-06 17:24:35 +02:00
},
plugins: [
2018-05-04 01:58:43 +02:00
'gatsby-plugin-react-next',
'gatsby-plugin-react-helmet',
2018-05-05 00:17:26 +02:00
'gatsby-transformer-yaml',
2018-05-04 01:58:43 +02:00
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
2018-05-08 17:19:08 +02:00
'gatsby-plugin-sitemap',
2018-05-07 01:43:33 +02:00
'gatsby-plugin-offline',
2018-04-07 14:18:06 +02:00
{
2018-04-08 22:49:58 +02:00
resolve: 'gatsby-plugin-sass',
2018-04-07 14:18:06 +02:00
options: {
2018-04-21 20:01:50 +02:00
includePaths: [`${__dirname}/node_modules`, `${__dirname}/src/styles`],
2018-04-21 15:46:04 +02:00
},
2018-04-07 14:18:06 +02:00
},
2018-04-06 17:24:35 +02:00
{
2018-04-08 22:49:58 +02:00
resolve: 'gatsby-source-filesystem',
2018-04-06 17:24:35 +02:00
options: {
2018-04-11 13:46:55 +02:00
name: 'data',
2018-05-04 01:58:43 +02:00
path: path.join(__dirname, 'data'),
2018-04-21 15:46:04 +02:00
},
2018-04-08 22:49:58 +02:00
},
2018-04-22 23:51:50 +02:00
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
2018-05-04 01:58:43 +02:00
path: path.join(__dirname, 'src', 'images'),
2018-04-22 23:51:50 +02:00
},
},
2018-04-11 12:46:55 +02:00
{
resolve: 'gatsby-plugin-google-analytics',
options: {
2018-04-21 02:03:45 +02:00
trackingId: `${googleanalytics}`,
2018-04-11 12:46:55 +02:00
head: false,
anonymize: true,
respectDNT: true,
2018-04-21 15:46:04 +02:00
},
},
2018-05-07 19:31:10 +02:00
{
resolve: 'gatsby-plugin-matomo',
options: {
siteId: `${matomoSite}`,
siteUrl: `${url}`,
matomoUrl: `${matomoUrl}`,
2018-05-11 00:30:16 +02:00
localScript: '/piwik.js',
2018-05-07 19:31:10 +02:00
},
},
2018-04-22 23:51:50 +02:00
{
resolve: 'gatsby-plugin-svgr',
options: {
icon: false,
viewBox: true,
// see https://github.com/smooth-code/svgr for a list of all options
},
},
2018-05-07 01:43:33 +02:00
{
resolve: 'gatsby-plugin-favicon',
options: {
logo: './src/images/favicon.png',
injectHTML: true,
icons: {
android: true,
appleIcon: true,
appleStartup: false,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: true,
windows: true,
},
},
},
2018-04-21 15:46:04 +02:00
],
2018-04-06 17:24:35 +02:00
}