-
Vue.js PWA 프로젝트 firebase 호스팅 방법개발 공부/PWA 2023. 10. 6. 08:56반응형SMALL
1. firebase 설치
npm install -g firebase-tools
2. 빌드
npm run build
* 빌드 후 dist 폴더 생기는걸 볼 수 있음
3. ".firebase" , "firebase.json" 파일 생성
- .firebase : "first" 는 내 프로젝트 이름임
{ "projects":{ "default" : "first" } }
- firebase.json
{ "hosting":{ "public":"dist", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites":[ { "source":"**", "destination":"/index.html" } ] } }
* 프로젝트 구성
반응형LIST'개발 공부 > PWA' 카테고리의 다른 글
Vue.js 프로젝트 PWA 적용하기 - 매니페스트, 서비스워커 (Manifest, Service Worker) (1) 2023.10.05 Vue js 프로젝트 생성 방법 vue cli로 시작하기 (0) 2023.10.05 Firebase 사용 방법 프로젝트 시작 VSCode 적용 (0) 2023.09.25 PWA 빌드 서비스 워커 동작 확인 방법 (0) 2023.09.20 보안 오류 PSSecurityException UnauthorizedAccess 해결 방법 (0) 2023.09.20