Usage update the uglifyjs library ➡️ yarn update-uglify (in resources directory) extract the uglifyjs javascript file ➡️ yarn extract-script (in resources directory) build the jar ➡️ mvn package java -jar nashorn-uglifyjs.jar input.js output.min.js Credits the great UglifyJS2