We are using WebPack in a single page application. The application is deployed to many environments. We have a requirement where the application needs to call a specific end
I think uglify-loader might do the trick. It provides you more control over the minification result than what you get out of the box.