Skip to content

Commit

Permalink
Favicon plugin update so favicons plugin and manifest plugin play nicely
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Hoyer committed Mar 31, 2018
1 parent 94e0ad9 commit a7a3e03
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 19 deletions.
50 changes: 31 additions & 19 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ module.exports = {
plugins: []
}
},
// {
// resolve: `gatsby-plugin-favicon`,
// options: {
// logo: "./src/favicon.png",
// injectHTML: true,
// icons: {
// android: true,
// appleIcon: true,
// appleStartup: true,
// coast: false,
// favicons: true,
// firefox: true,
// twitter: false,
// yandex: false,
// windows: false
// }
// }
// },
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/favicon.png",
injectHTML: true,
icons: {
android: false,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
twitter: false,
yandex: false,
windows: false
}
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
Expand Down Expand Up @@ -119,9 +119,21 @@ module.exports = {
dir: "/src/svg", // only process this directory
// svgr options
icon: true,
viewBox: false
viewBox: true
// see https://github.com/smooth-code/svgr for a list of all options
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-89672578-1",
// Puts tracking script in the head instead of the body
head: false,
// Setting this parameter is optional
anonymize: true,
// Setting this parameter is also optional
respectDNT: true
}
}
]
};
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"gatsby-image": "^1.0.42",
"gatsby-link": "^1.6.40",
"gatsby-plugin-catch-links": "^1.0.19",
"gatsby-plugin-google-analytics": "^1.0.25",
"gatsby-plugin-manifest": "^1.0.15",
"gatsby-plugin-netlify-cms": "^1.0.12",
"gatsby-plugin-offline": "^1.0.15",
Expand Down

0 comments on commit a7a3e03

Please sign in to comment.