代码拉取完成,页面将自动刷新
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const siteConfig = require('./src/config');
module.exports = {
pathPrefix: '',
siteMetadata: {
url: siteConfig.siteUrl,
title: siteConfig.title,
subtitle: siteConfig.subtitle,
copyright: siteConfig.copyright,
disqusShortname: siteConfig.disqusShortname,
menu: siteConfig.menu,
author: siteConfig.author,
},
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
'G-ESMV9733ZW', // 설정 Google Analytics / GA
// "AW-CONVERSION_ID", // Google Ads / Adwords / AW
// "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
],
},
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
'gatsby-transformer-json',
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: 'src/assets/images/favicon.png',
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `projects`,
path: `${__dirname}/src/content/projects`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `articles`,
path: `${__dirname}/src/content/articles`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/src/content/posts`,
},
},
'gatsby-transformer-remark',
{
resolve: 'gatsby-plugin-typescript',
options: {
isTSX: true,
allExtensions: true,
},
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@t': path.resolve(__dirname, 'src/types'),
'@components': path.resolve(__dirname, 'src/components'),
'@layouts': path.resolve(__dirname, 'src/layouts'),
'@content': path.resolve(__dirname, 'src/content'),
'@images': path.resolve(__dirname, 'src/assets/images'),
},
extensions: ['js', 'jsx', 'ts', 'tsx'],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-emotion`,
options: {
sourceMap: true,
autoLabel: 'dev-only',
labelFormat: `[local]`,
cssPropOptimization: true,
},
},
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。