Skip to content

Commit 3571342

Browse files
committed
Update gatsby-config.ts
1 parent c339e49 commit 3571342

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

gatsby-config.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = {
102102
markdownCaptions: true,
103103
backgroundColor: "transparent",
104104
linkImagesToOriginal: false,
105-
withWebp: true,
105+
withWebp: true, // WebP 변환 활성화
106106
},
107107
},
108108
{
@@ -121,7 +121,22 @@ module.exports = {
121121
},
122122
},
123123
`gatsby-remark-prismjs`,
124-
`gatsby-remark-copy-relative-linked-files`,
124+
{
125+
resolve: `gatsby-remark-copy-relative-linked-files`,
126+
options: {
127+
// 이미지 파일은 gatsby-remark-images가 처리하도록 제외
128+
ignoreFileExtensions: [
129+
`png`,
130+
`jpg`,
131+
`jpeg`,
132+
`bmp`,
133+
`tiff`,
134+
`webp`,
135+
`gif`,
136+
`svg`,
137+
],
138+
},
139+
},
125140
],
126141
},
127142
},

0 commit comments

Comments
 (0)