공부하기/vue.js
-
vue3, three.js example공부하기/vue.js 2021. 4. 25. 15:58
getBackgound.js import * as THREE from 'three' import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js'; import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js'; import { TexturePass } from 'three/examples/jsm/postprocessing/TexturePass.js'; import { ClearPass } from 'three/examples/jsm/postprocessing/ClearPass.js'; import { MaskPass, ClearMaskPas..
-
vue3 github actions github pages 배포공부하기/vue.js 2021. 4. 18. 20:21
.github/workflows/deploy.yml 생성하기 name: Deploy Project on: push: branches: - main jobs: update: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Set up Node.js uses: actions/setup-node@master with: node-version: 12.x - name: Cache node_modules uses: actions/cache@v1 with: path: node_modules key: ${{runner.OS}}-build-${{hashFiles('**/yarn.lock')}} restore-keys: | ${{ runner.O..
-
vue 3 & github pages 배포공부하기/vue.js 2021. 4. 17. 15:51
1. vue3 프로젝트를 create 한다. 2.github repogitory를 만들고 vue project와 remote한다. 3. vue.config.js 파일을 만들고 (경로 : '/' ) module.exports = { publicPath: process.env.NODE_ENV === 'production' ? '/깃헙 레파지토리 이름/' : '/' } 코드를 넣고 저장한다. 4.deploy.sh를 만들고 아래 코드를 붙여넣는다. ( 경로: '/' ) #!/usr/bin/env sh # abort on errors set -e # build npm run build # navigate into the build output directory cd dist # if you are deployin..