|
1 | | -const config = require("./data/Config"); |
| 1 | +const config = require('./data/Config'); |
2 | 2 |
|
3 | 3 | module.exports = { |
4 | | - plugins: [ |
5 | | - 'gatsby-plugin-react-helmet', |
6 | | - 'gatsby-plugin-sass', |
7 | | - 'gatsby-plugin-react-next', |
8 | | - { |
9 | | - resolve: 'gatsby-plugin-canonical-urls', |
10 | | - options: { |
11 | | - siteUrl: config.siteURL, |
12 | | - }, |
13 | | - }, |
14 | | - 'gatsby-plugin-catch-links', |
15 | | - 'gatsby-transformer-sharp', |
16 | | - 'gatsby-plugin-sharp', |
| 4 | + plugins: [ |
| 5 | + 'gatsby-plugin-react-helmet', |
| 6 | + 'gatsby-plugin-sass', |
| 7 | + 'gatsby-plugin-react-next', |
17 | 8 | { |
18 | | - resolve: `gatsby-transformer-remark`, |
| 9 | + resolve: 'gatsby-plugin-canonical-urls', |
| 10 | + options: { |
| 11 | + siteUrl: config.siteURL, |
| 12 | + }, |
| 13 | + }, |
| 14 | + 'gatsby-plugin-catch-links', |
| 15 | + 'gatsby-transformer-sharp', |
| 16 | + 'gatsby-plugin-sharp', |
| 17 | + { |
| 18 | + resolve: 'gatsby-transformer-remark', |
19 | 19 | options: { |
20 | 20 | plugins: [ |
21 | 21 | { |
22 | | - resolve: `gatsby-remark-prismjs`, |
| 22 | + resolve: 'gatsby-remark-prismjs', |
23 | 23 | options: { |
24 | 24 | classPrefix: 'language-', |
25 | 25 | inlineCodeMarker: null, |
26 | 26 | aliases: {}, |
27 | 27 | }, |
28 | | - }, |
29 | | - { |
30 | | - resolve: 'gatsby-remark-images', |
31 | | - options: { |
32 | | - maxWidth: 1000, |
33 | | - }, |
34 | | - }, |
| 28 | + }, |
| 29 | + { |
| 30 | + resolve: 'gatsby-remark-images', |
| 31 | + options: { |
| 32 | + maxWidth: 1000, |
| 33 | + }, |
| 34 | + }, |
35 | 35 | ], |
36 | 36 | }, |
37 | 37 | }, |
38 | | - { |
| 38 | + { |
39 | 39 | resolve: 'gatsby-source-filesystem', |
40 | 40 | options: { |
41 | 41 | name: 'posts', |
42 | 42 | path: `${__dirname}/content/`, |
43 | 43 | }, |
44 | 44 | }, |
45 | | - { |
46 | | - resolve: "gatsby-plugin-google-analytics", |
47 | | - options: { |
48 | | - trackingId: config.googleAnalyticsID, |
49 | | - } |
50 | | - }, |
51 | | - { |
52 | | - resolve: "gatsby-plugin-nprogress", |
53 | | - options: { |
54 | | - color: config.themeColor, |
55 | | - showSpinner: false, |
56 | | - } |
57 | | - }, |
58 | | - 'gatsby-transformer-json', |
59 | | - { |
60 | | - resolve: `gatsby-plugin-manifest`, |
61 | | - options: { |
62 | | - name: config.siteName, |
63 | | - short_name: config.siteName, |
64 | | - start_url: "/", |
65 | | - background_color: config.backgroundColor, |
66 | | - theme_color: config.themeColor, |
67 | | - display: "minimal-ui", |
68 | | - icons: [ |
69 | | - { |
70 | | - src: `/favicon/logo-192x192.png`, |
71 | | - sizes: `192x192`, |
72 | | - type: `image/png`, |
73 | | - }, |
74 | | - { |
75 | | - src: `/favicon/logo-512x512.png`, |
76 | | - sizes: `512x512`, |
77 | | - type: `image/png`, |
78 | | - }, |
79 | | - ], |
80 | | - }, |
81 | | - }, |
82 | | - "gatsby-plugin-offline", |
83 | | - ], |
| 45 | + { |
| 46 | + resolve: 'gatsby-plugin-google-analytics', |
| 47 | + options: { |
| 48 | + trackingId: config.googleAnalyticsID, |
| 49 | + } |
| 50 | + }, |
| 51 | + { |
| 52 | + resolve: 'gatsby-plugin-nprogress', |
| 53 | + options: { |
| 54 | + color: config.themeColor, |
| 55 | + showSpinner: false, |
| 56 | + } |
| 57 | + }, |
| 58 | + 'gatsby-transformer-json', |
| 59 | + { |
| 60 | + resolve: 'gatsby-plugin-manifest', |
| 61 | + options: { |
| 62 | + name: config.siteName, |
| 63 | + short_name: config.siteName, |
| 64 | + start_url: '/', |
| 65 | + background_color: config.backgroundColor, |
| 66 | + theme_color: config.themeColor, |
| 67 | + display: 'minimal-ui', |
| 68 | + icons: [ |
| 69 | + { |
| 70 | + src: '/favicon/logo-192x192.png', |
| 71 | + sizes: '192x192', |
| 72 | + type: 'image/png', |
| 73 | + }, |
| 74 | + { |
| 75 | + src: '/favicon/logo-512x512.png', |
| 76 | + sizes: '512x512', |
| 77 | + type: 'image/png', |
| 78 | + }, |
| 79 | + ], |
| 80 | + }, |
| 81 | + }, |
| 82 | + 'gatsby-plugin-offline', |
| 83 | + ], |
84 | 84 | }; |
0 commit comments