-
Three.JS๋ก ํ๋ก์ ํธ๋ฅผ ์์ํ๊ณ ์ถ์ ๋, Webpack์ผ๋ก ๋ง๋ Three.js๋ฅผ ์ด์ฉํ์ธ์
-
Three.JS ํ๋ก์ ํธ๋ฅผ ๋ ์์ํ๊ฒ ์ด์ฉํ์ค ์ ์์ต๋๋ค.
- ๋ฐ์ ๋งํฌ๋ฅผ ๋ค์ด๋ฐ์ ํ ์ค์นํ๋ฉด ์ฌ์ฉํ์ค ์ ์์ต๋๋ค:
git clone https://github.com/light9639/three-js-webpack.git
npm i
- Webpack์ผ๋ก ๊ฐ๋ฐํด๋ณด์ธ์:
npm run start
- Webpack ๊ตฌ์ฑ ํ์ผ์
webpack.config.js
์ ์์ต๋๋ค.
- ์์
ํ ๋ค๋ฅธ ์ ์ ์น์ฌ์ดํธ์ ํธ์คํ
ํ๋ ค๊ณ ํ ๋. ์ฝ๋๋ฅผ ๋ฒ๋ค๋ง ํ์ ํ Repository์
push
ํ์๋ฉด ๋ฉ๋๋ค.
npm run build
git add
git commit -m "Deploying on GitHub Pages"
git push
- ์ด ์ฝ๋๋ prettier๋ก ํ์์ ๋ฐ๊ฟ ์ ์์ต๋๋ค:
npm run format