I would like to know if I can call the minify
main function programmatically.
I am able to run the same code as defined in compress, however replacing UglifyJS.Compressor
with UglifyJS.minify
does not work.
This is because I would like to pass the same options defined in the README of UglifyJS2, instead of the ones in compress
.
Please note that I am running the code in Nashorn, and not in Node.js so that would be similar to a browser environment.