DEV/Git
터미널로 Github 올리기 및 Vue.js 배포 방법
larmong
2022. 4. 14. 23:55
1. GitHub repository 생성
2. 터미널 키고 cd 폴더주소
3. git init
4. git remote add main 깃허브URL
5. git add -A
6. git commint -m “커밋메세지”
Vue.js 배포 할 때 해야하는 작업
1. config.js 파일에 아래 코드 추가
module.exports = {
outputDir: "./docs",
publicPath: ""
}
2. npm run build
3. Push할때는 docs 폴더안의 파일만 해주면 됨