반응형
Gatsby plugin을 포함하여 styled-components를 위한 필수 dependencies를 설치합니다.
# Yarn
yarn add gatsby-plugin-styled-components styled-components babel-plugin-styled-components
# Npm
npm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components
gatsby-config.js에 다음을 추가합니다.
module.exports = {
plugins: [`gatsby-plugin-styled-components`],
}반응형
'IT > Gatsby' 카테고리의 다른 글
| 첫 Gatsby 사이트 만들고 Gatsby Cloud에 배포하기 (0) | 2022.01.23 |
|---|---|
| [Gatsby] 환경 구축 (0) | 2022.01.19 |
댓글