You may want to read the documentat for parcel.js
You can either install it globally and run parcel against your file:
parcel html/index.html
or you can install it locally and add it to your package.json
scripts similar to below:
"scripts": {
"parcel:dev": "parcel src/index.html",
"parcel:dev:nocache": "parcel src/index.html --no-cache",
"parcel:build": "parcel build src/index.html --public-url ./"
},
There are a few other ways to do it as well.
The documentation for both both parcel
and npm
should help you resolve your issues so please read them carefully.