Web starter using ParcelJS for learnjavascript.online
This boilerplate is provided at the end of the Learn JavaScript course.
First time
git clone https://github.com/jadjoubran/web-starter-parcel.git
cd web-starter-parcel
npm install
Then you can run the server
npm run serve
Browse to localhost:1234
This starter uses parcel (v2) to bundle your scripts.
You can import other files. Make sure you have the correct path. You can also import libraries installed with NPM. We already included an example for you with date-fns. Feel free to remove it if you don't need it.
When you're ready to deploy, you can build for production with the following command:
npm run build