๊ทธ๋์ ์ ๊ทธ๋ ์ด๋ํ๋๋ฐ ๋ค์ ๋ฉ์์ง๊ฐ ๋ํ๋ฉ๋๋ค.
Gatsby is currently using the default template for HTML. You can override
this functionality by creating a React component at "/html.js"
You can see what this default template does by visiting:
https://github.com/gatsbyjs/gatsby/blob/master/lib/isomorphic/html.js
๋ด ๋ฃจํธ ๋๋ ํ ๋ฆฌ์ html.jsx
๊ฐ ์๊ณ ์ด์ ๋ฒ์ ์ gatsby์์ ์ ์ ํํ๊ธฐ ๋๋ฌธ์ ์ด๋ฏธ ํผ๋์ค๋ฝ์ต๋๋ค. ์ด์ ์ ๋ฒ์ ์ผ๋ก ๋ค๋ฅธ ๊ณณ์ ๋์์ผ ํฉ๋๊น?
๊ทธ๋์ ๋๋ /wrappers
๋ฐ /pages
๋ ๋ค ์๋ํ๋ ๊ฒ์ ๋๋ด๊ณ ๋ ๋ค ์๋ํ์ง ์์ต๋๋ค.
๊ทธ๋ฐ ๋ค์ .jsx
์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ ํ์ฅ์๋ฅผ .js
๋ณ๊ฒฝํ๋ ค๊ณ ์๋ํ์ง๋ง ์๋ํ์ง ์์ต๋๋ค.
์ด 1๊ฐ์ง ๋ฌธ์ ์ธ์ 0.10์ผ๋ก ์
๊ทธ๋ ์ด๋ํ๋ ๊ฒ์ ์ด๋ ต์ง ์์์ง๋ง html.jsx
์๋ ์ฝ๋๊ฐ ํ์ํ๊ณ ์ด ๋์์ด ๋ณ๊ฒฝ๋ ์ด์ ๊ฐ ๋ช
ํํ์ง ์์ต๋๋ค.
๋ค์์ ๋ด๊ฐ ์๋ํ ๊ฒ์ฌ์์น์ ๋๋ค.
/html.js
/wrappers/html.js
/pages/html.js
๋ด๊ฐ ๋์น๊ณ ์๋ ๊ฒ์ด ๋ถ๋ช ํฉ๋๊น?
@rossPatton๋ , PR #275๊ฐ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด์ผ ํฉ๋๋ค. 0.10.0
๋ค์ด๊ทธ๋ ์ด๋ํ๊ณ ๋ค์ ์๋ํ์ญ์์ค.
ํ! ๊ทธ๊ฑฐ์๋ค. ๋น ๋ฅธ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค
@rossPatton ๋ฐฉ๊ธ #275์ ์์ ์ฌํญ๊ณผ ํจ๊ป 0.10.2๋ฅผ ๋ฆด๋ฆฌ์คํ์ต๋๋ค. ์ ๊ทธ๋ ์ด๋ํ๊ณ ์์ ์ฌํญ์ด ํจ๊ณผ๊ฐ ์๋์ง ์๋ ค์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@rossPatton๋ , PR #275๊ฐ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด์ผ ํฉ๋๋ค.
0.10.0
๋ค์ด๊ทธ๋ ์ด๋ํ๊ณ ๋ค์ ์๋ํ์ญ์์ค.