Hi.
In openmodeling we use a tiny java program doing the crunching by running a script in batch.
The script is the following:
-----------------------------------------------------------------------------
ESC (ECMAScript Cruncher)
* Version : 1.11
* Date : 2002-01-25 11:03:43 [+0100]
* License : GNU GPL (
http://www.gnu.org/copyleft/gpl.txt)
* Copyright (C) 2001,2002 Thomas Loo - Saltstorm. <esc@saltstorm.net>
---------------------------------------------------------------------------
ESC is an ECMAScript(*) pre-processor enabling an unlimited number of
external scripts to be compressed/crunched into tight, bandwidth-optimized
packages. ESC supports compressing of external sources only. Trying to
process scripts inlined in HTML, ASP, PHP or equivalent pages are NOT
recommended with this version of ESC. This feature might be added in a
future version. Type "cscript ESC.wsf -help" for usage instructions.
ESC is built using components from the Soya Scripting API 1.0.0-b5,
a uni-host/cross-browser ECMAScript compliant class-library distributed
freely under the terms of the BSD License. The Soya Scripting API,
'lib-soya' and the Soya SDK can be found at
http://www.saltstorm.net
---------------------------------------------------------------------------
* ECMAScript is the international standard for javascript.
Search for esc.wsf in google and you find it. If you want to run in batch maybe we can provide you goodies.