This is a template webpack config that can be used as the foundation for front-end projects. It includes comments in webpack.config.js that detail the config's structure & functionality. I created this as a template I can easily use to quickly start new projects. This project has greatly refined my knowledge of module bundlers and their nuances.
You must have Node.js installed on your computer. I recommend using nvm to manage Node on your computer.
To install the node dependencies, run
npm installTo build the distribtution code:
npm run buildTo run the dev server on port 9000:
npm run devThank you to Traversy Media for the excellent webpack starter tutorial.