一直想压缩JS的代码,找了好多工具都不是很理想
.这次终于找到了一个好的,推荐给大家.
ESC (ECMAScript Cruncher) * Version : 1.14
* Date : 2006-02-28 22:22:15 [+0100]
* License : GNU GPL 2 (http://www.gnu.org/copyleft/gpl.txt)
* Copyright (C) 2001-2006 Thomas Loo <tloo@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-b10,
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.
-----------------------------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA