From 7b3adeec05a5f16cf698c3a956d1e31e952490a6 Mon Sep 17 00:00:00 2001 From: kpman Date: Tue, 27 Mar 2018 09:22:27 +0800 Subject: [PATCH] Add gatsby-plugin-catch-links --- gatsby-config.js | 33 +++++++++++++++++---------------- package.json | 1 + yarn.lock | 6 ++++++ 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 4efb921..95c84d4 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,35 +1,35 @@ module.exports = { siteMetadata: { - title: 'Bottender', - siteUrl: 'https://bottender.js.org', + title: `Bottender`, + siteUrl: `https://bottender.js.org`, }, plugins: [ - 'gatsby-plugin-react-next', + `gatsby-plugin-react-next`, { - resolve: 'gatsby-source-filesystem', + resolve: `gatsby-source-filesystem`, options: { - name: 'src', + name: `src`, path: `${__dirname}/src/`, }, }, { - resolve: 'gatsby-source-filesystem', + resolve: `gatsby-source-filesystem`, options: { - name: 'content', + name: `content`, path: `${__dirname}/content/`, }, }, - 'gatsby-plugin-styled-components', + `gatsby-plugin-styled-components`, { - resolve: 'gatsby-plugin-typography', + resolve: `gatsby-plugin-typography`, options: { - pathToConfigModule: 'src/utils/typography', + pathToConfigModule: `src/utils/typography`, }, }, { - resolve: 'gatsby-plugin-google-analytics', + resolve: `gatsby-plugin-google-analytics`, options: { - trackingId: 'UA-108095811-1', + trackingId: `UA-108095811-1`, }, }, { @@ -39,12 +39,12 @@ module.exports = { { resolve: `gatsby-remark-prismjs`, options: { - classPrefix: 'language-', + classPrefix: `language-`, }, }, - 'gatsby-remark-autolink-headers', + `gatsby-remark-autolink-headers`, { - resolve: 'gatsby-remark-images', + resolve: `gatsby-remark-images`, options: { maxWidth: 720, }, @@ -53,9 +53,10 @@ module.exports = { }, }, `gatsby-plugin-react-helmet`, + `gatsby-plugin-catch-links`, { resolve: `gatsby-plugin-sitemap`, }, - 'gatsby-plugin-offline', + `gatsby-plugin-offline`, ], }; diff --git a/package.json b/package.json index c61bb98..baa68d5 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "gatsby": "^1.9.238", "gatsby-link": "^1.6.39", + "gatsby-plugin-catch-links": "^1.0.19", "gatsby-plugin-glamor": "^1.6.13", "gatsby-plugin-google-analytics": "^1.0.24", "gatsby-plugin-offline": "^1.0.15", diff --git a/yarn.lock b/yarn.lock index 0386b88..ed9a931 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4573,6 +4573,12 @@ gatsby-module-loader@^1.0.11: babel-runtime "^6.26.0" loader-utils "^0.2.16" +gatsby-plugin-catch-links@^1.0.19: + version "1.0.19" + resolved "https://registry.yarnpkg.com/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-1.0.19.tgz#5f25b6e9b1b208afd6e177e234c9e483b5a60e2a" + dependencies: + babel-runtime "^6.26.0" + gatsby-plugin-glamor@^1.6.13: version "1.6.13" resolved "https://registry.yarnpkg.com/gatsby-plugin-glamor/-/gatsby-plugin-glamor-1.6.13.tgz#3e47fc78f7a86e68ebc6a9f4697db29a5681cc22"