npm 초기화

beomhak lee·2022년 5월 8일
0

javascript

목록 보기
8/12
post-thumbnail

npm init -y

package.json 생성된다.

npm i parcel-bundler -D

파슬번들러 패키지 개발용 설치

package.json 파일 이동하여 dev와 디스트파일용 build 를 설정해준다.

"scripts": {
    "dev" : "parcel index.html",
    "build" : "parcel build index.html"

로컬서버를 열어준다.

npm run dev

0개의 댓글