How to run UglifyJS2 without Node.JS

Anyway to run UglifyJS2 without node.js? Let's say I would like to run it in a JVM process using a JavaScript script. How to do it?

+5
source share
1 answer

I saw a Misha answer you https://github.com/mishoo/UglifyJS2/issues/122

Two possible ways:

  • run uglifyjs --selfto get the UglifyJS assembly, which you can download in a browser (or in any JS environment), and you can use the API described here .

  • lib/( utils.js ast.js, ). , - API, UglifyJS..

tools/node.js, , Node ( require).

+3

All Articles