We are using parcel to bundle html, javascript, css. It is generating the smallest possible subset of js code of our dependent libraries to be deployed on production server. This improves performance and stores libraries on our server instead of third party servers.
- Install node.js ( Tested with node 12.18.3 and npm 6.14.8 )
- cd to subdirectory
html
- Run
npm install
- Run
npm run pretest
to run linter - Run
npm start
to start development server on port 1234 - Run
npm run build
to produce packed html / js / css / static js files indist
subdirectory - Copy contents of
dist
folder to production http server
References