Example of basic Webpack config for a simple website.
Install all packages first:
$ npm i
Run webpack
$ npm run build
Watch webpack
$ npm run watch
You will see the index page with a beautiful image of Kerala in India. The image has a boostrap class along with it. Happy Coding & Cheers !