https://parceljs.org/getting_started.html
$ mkdir project
$ cd project
$ git init .
$ npx gitignore node
$ yarn init
$ yarn add --dev parcel-bundler
Add to package.json
:
"license": "MIT",
+ "scripts": {
+ "start": "parcel index.html",
+ "build": "parcel build index.html"
+ },
"devDependencies": {
index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script src="./src/app.js"></script>
</body>
</html>
Add an app.js
with whatever you like.
$ yarn start
Go to http://localhost:1234