I have an already working Angular 2 application with express as a backend server.
The express server has some logic that redirects the request to the right path based on the URL and file type, meaning, there is no one "public path" that has all of the files.
I found out that my application takes 16 seconds to load and 454 requests are being made to the server on first load.
Since I didn't know I had to handle bundling, I'm a little stuck. So now I'm very confused regarding which tool to use for bundling while keeping the server side as it is (express server).
I've tried webpack but it has webpack-dev-server as the backend and that means I need to refactor the express server logic to fit the webpack server or use the webpack server as a middleware and that also looks like a lot of hassle.
I saw some other options but lost my way in the middle since there is too much information and little amount of simple examples.
Some of the tools I saw where gulp, rollup, systejs-builder, browserify. Please help me find the easiest way to handle bundling and supply examples explanations if you can.