Skip to content

Commit a7a3e03

Browse files
author
Martyn Hoyer
committed
Favicon plugin update so favicons plugin and manifest plugin play nicely
see: Creatiwity/gatsby-plugin-favicon#20 and: gatsbyjs/gatsby#4382
1 parent 94e0ad9 commit a7a3e03

File tree

3 files changed

+40
-19
lines changed

3 files changed

+40
-19
lines changed

gatsby-config.js

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ module.exports = {
3636
plugins: []
3737
}
3838
},
39-
// {
40-
// resolve: `gatsby-plugin-favicon`,
41-
// options: {
42-
// logo: "./src/favicon.png",
43-
// injectHTML: true,
44-
// icons: {
45-
// android: true,
46-
// appleIcon: true,
47-
// appleStartup: true,
48-
// coast: false,
49-
// favicons: true,
50-
// firefox: true,
51-
// twitter: false,
52-
// yandex: false,
53-
// windows: false
54-
// }
55-
// }
56-
// },
39+
{
40+
resolve: `gatsby-plugin-favicon`,
41+
options: {
42+
logo: "./src/favicon.png",
43+
injectHTML: true,
44+
icons: {
45+
android: false,
46+
appleIcon: true,
47+
appleStartup: true,
48+
coast: false,
49+
favicons: true,
50+
firefox: true,
51+
twitter: false,
52+
yandex: false,
53+
windows: false
54+
}
55+
}
56+
},
5757
{
5858
resolve: `gatsby-plugin-manifest`,
5959
options: {
@@ -119,9 +119,21 @@ module.exports = {
119119
dir: "/src/svg", // only process this directory
120120
// svgr options
121121
icon: true,
122-
viewBox: false
122+
viewBox: true
123123
// see https://github.com/smooth-code/svgr for a list of all options
124124
}
125+
},
126+
{
127+
resolve: `gatsby-plugin-google-analytics`,
128+
options: {
129+
trackingId: "UA-89672578-1",
130+
// Puts tracking script in the head instead of the body
131+
head: false,
132+
// Setting this parameter is optional
133+
anonymize: true,
134+
// Setting this parameter is also optional
135+
respectDNT: true
136+
}
125137
}
126138
]
127139
};

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"gatsby-image": "^1.0.42",
1010
"gatsby-link": "^1.6.40",
1111
"gatsby-plugin-catch-links": "^1.0.19",
12+
"gatsby-plugin-google-analytics": "^1.0.25",
1213
"gatsby-plugin-manifest": "^1.0.15",
1314
"gatsby-plugin-netlify-cms": "^1.0.12",
1415
"gatsby-plugin-offline": "^1.0.15",

0 commit comments

Comments
 (0)