원하는 위치에 프로젝트 명으로 폴더를 만든다.
vs code를 열고 새로 만든 폴더를 연다
터미널을 열고 하단의 명령어를 입력하면 package.json 파일이 생성된다.
npm init -y
npm install parcel-bundler --save-dev
// 단축어
npm i parcel-bundler -D
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html"
},
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="./main.js"></script>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
console.log('Hello world!')
npm run dev