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

55 lines
1.2 KiB
JavaScript

const path = require('path')
const yaml = require('js-yaml')
const meta = yaml.safeLoad('./data/meta.yml')
const { url, googleanalytics } = meta
module.exports = {
siteMetadata: {
siteUrl: `${url}`,
},
plugins: [
'gatsby-plugin-react-next',
'gatsby-plugin-react-helmet',
'gatsby-transformer-yaml',
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-sass',
options: {
includePaths: [`${__dirname}/node_modules`, `${__dirname}/src/styles`],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'data',
path: path.join(__dirname, 'data'),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'src', 'images'),
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: `${googleanalytics}`,
head: false,
anonymize: true,
respectDNT: true,
},
},
{
resolve: 'gatsby-plugin-svgr',
options: {
icon: false,
viewBox: true,
// see https://github.com/smooth-code/svgr for a list of all options
},
},
],
}