Monday, 15 August 2011

javascript - How to run UglifyJS2 without Node.JS -



javascript - How to run UglifyJS2 without Node.JS -

anyway run uglifyjs2 without node.js? run in jvm process using javascript script engine. how that?

i saw mishoo answered https://github.com/mishoo/uglifyjs2/issues/122

two possible ways:

run uglifyjs --self build of uglifyjs can load in browser (or in js environment) , can utilize api described here.

load in environment files in lib/ directory (load utils.js , ast.js first, others can come in whatever order). if this, global—you can utilize same api there's no need prefix stuff uglifyjs..

also might want @ tools/node.js see how load in node (as we're not using standard require).

javascript jvm scriptengine uglifyjs uglifyjs2

No comments:

Post a Comment