What does building a JS app take? Linting maybe, then concatenating files, minifying them. Then there should be some maintaining tasks, like updating dependencies, testing, deploying. Am I missing anything (serious question, I'm rather unfamiliar)?
Minifiers can remove dead and unaccessible code.
They can also rename function and variable names with shorter ones, and compile code to be shorter (marginal gains since it's all going to be served compressed).
There are tens of thousands of examples to choose from. For a makefile-based webpack, there are zero.
Unfortunately concerns like this matter.