JavaScript│Node js
React Progressive web app 튜토리얼 ( 만들고 , firebase에 배포하기 )
iIxmont
2018. 11. 11. 10:54
create-react-app 앱 이름
(firebase console 에도 프로젝트 생성)
1. yarn build
프로젝트를 build 한다.
2. npm install firebase-tools
firebase 모듈 다운로드
3. firebase init
ready to proceed? yes
what do you want to use as your public directory ? build
Configure as a single-page app ( rewrite all urls to /index.html )? yes
File build/index.html already exists. overwrite? no
로그인을 하지 않으면 3번이 안 될수도 있다.
그럴때는 firebase login 명령어 입력
4. firebase deploy
끝.