-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
57 lines (56 loc) · 1.54 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const sass = require('sass');
const sassJsonImporter = require('node-sass-json-importer');
module.exports = {
pathPrefix: '/introduction-to-advanced-sass',
siteMetadata: {
title: 'Introduction to advanced Sass',
description: 'Brief description of advanced Sass features and good practices spiced up with some explanations, examples and useful links',
author: 'Marcin Gościcki',
siteUrl: 'https://syzygypl.github.io/introduction-to-advanced-sass/',
},
plugins: [
{
resolve: 'gatsby-plugin-sass',
options: {
implementation: sass,
sassOptions: {
importer: sassJsonImporter(),
},
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-image',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /images/,
},
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Introduction to advanced Sass',
short_name: 'Advanced Sass',
start_url: '/',
background_color: '#222222',
theme_color: '#222222',
display: 'minimal-ui',
icon: 'src/images/icon.png',
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
'gatsby-plugin-offline',
],
};