Is there some application that can automatically bundle (and minify) JS projects that have require('file.js')
calls in them? So that they are merged and one single file is produced.
Specifically I am talking about when.js, a JS library with a lot of files and dependencies. I tried several tools like node.js and npm but I am not really used to these. I am not sure if they are even able to do this. From the the Installation page I thought it would be possible (also it states that there is a minified file, but there is none in the project or releases).
You can use webpack for the frontend side.
It will handle the require
function to work in the browser, but it also can do some other things like transpile you ecmaescript 6, validate it with jshint, jslint... through its loaders and plugins systems.