dev_eun
[Gatsby] index 페이지 css 로딩 오류 본문
로컬에서 실행할 때는 정상적으로 작동되었지만, deploy 후 github.io에서 실행했을 때 css가 정상적으로 작동하지 않는 상황이 발생했다.
- 해결
내가 styled-components 만 add 해놓고,
gatsby-plugin-styled-components
를 add 하지 않았다.
$ yarn add gatsby-plugin-styled-components
728x90
'Web > React.js' 카테고리의 다른 글
[Gastby] Github Action으로 github.io에 빌드/배포 자동화하기 (1) | 2021.01.15 |
---|---|
[Gatsby] body, html height 100%로 만들기, footer 설정 (0) | 2021.01.12 |