A simple web-server only does that: serving a website.
With a proper webpack setup, you get imports/exports, (node) module bundling, live reloading which all massively improve your development speed.
However I wouldn't recommend anyone to build their own webpack config if you don't know exactly what you're doing. Just use parcel: https://parceljs.org/
However I wouldn't recommend anyone to build their own webpack config if you don't know exactly what you're doing. Just use parcel: https://parceljs.org/