본문 바로가기
React

깃허브 페이지 creat-react-app 배포하기

by devebucks 2021. 11. 28.
728x90

create-react-app을 깃허브 페이지에 배포하기

 

패키지 설치

npm i gh-pages

 

package.json

{
  "homepage": '깃허브 페이지 주소',
  // ...
  "script": {
    // ...
      "predeploy": "npm run build",
      "deploy": "gh-pages -d build"
  }
}

 

npm run deploy

 

깃허브 세팅 페이지 설정

728x90

'React' 카테고리의 다른 글

[react] memo  (0) 2021.12.29
[React-Redux] typescript로 세팅하는 법  (0) 2021.11.28
깃허브 페이지 creat-react-app 배포하기  (0) 2021.11.27
[Redux] Redux란?  (0) 2021.11.26
[React]react router 사용법  (0) 2021.08.07

댓글