Why webpack?
We have a bunch of different script tags and adding all these scripts. It’s looks messy and when it calls to the server to load all these scripts, that is worse for performance → Webpack gathers all these dependencies, and builds a bundle.
For the SPA, you can easily split your application into multiple files and load just the code the page requires — Code Splitting
Also we can transform React or ES6 into vanilla JavaScript, or preprocess SASS, LESS… to CSS.