parcel 초기세팅 / 설정 방법
npm 초기화 및 parcel-bundler devDependencies 설치
1. $ npm init -y
2. $ npm i -D parcel-bundlerscripts에 하기 내용 추가
// package.json
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html"
},폴더, 파일 추가
index.html
js/main.js
scss/main.scss
reset.css
public/* // 이미지 파일 관련이미지 파일을 자동으로 dist 폴더에 넣을 수 있게 해주는 라이브러리 설치
$ npm install -D parcel-plugin-static-files-copypostcss, autoprefixer 설치
package.json에 하기 내용 추가
.postcssrc.js
[마켓로그] parcel 설정
Last updated