Webpack is usually used for Single page application recently. You can find many articles on how to set up webpack for SPA. But, in my case, I had to use webpack for Multi Page Application (MPA).
It was a bit difficult to use Webpack for MPA Spring boot, so I want to share how I did it.
You can see how I used webpack for spring boot MPA from here: