好用的js压缩工具esc

js压缩在高访问量的项目中是很有必要的。以前在网络上找了很多软件,都有这样那样的一些问题,有句话说得好"js压缩没有权威"。但esc确实是一款很不错的工具。

使用方法:

ESC(ECMAScript cruncher)这个工具只能在Windows下使用,ESC.wsf提供5种压缩级别,从0到4:

Level 0 :: No compression 不对JS文件进行压缩

Level 1 :: Comment removal 移除JS文件中的注释

Level 2 :: Whitespace removal 移除JS文件中的注释及空行(一般选择此级别就足够了)

Level 3 :: Newline removal 移除JS文件中的注释,将所有代码合并为一行

Level 4 :: Variable substitution 提供最新的压缩率,移除JS文件中的注释,将所有代码合并为一行,并且修改JS文件中的变量名

在WINDOWS命令行下执行

cscript ESC.wsf -ow 压缩后文件.js 压缩前文件.js 将压缩前的js文件按照压缩级别2来压缩(ESC.wsf默认压缩级别为2)

cscript ESC.wsf -l 3 -ow 压缩后文件.js Common.js 将压缩前的js文件按照压缩级别3来压缩为"压缩后文件.js"

需要注意的是,ESC.wsf压缩级别4会把变量名修改,如果你的js中用到了全局变量或者类的话,就不能使用该压缩级别了,否则其它使用你的js的文件可能会无法正常运行。

文件下载: 点击下载

最新评论:

no.111030 barbour.jurgen 104.245.145.58 2019-10-09 11:49

Jurgen

no.110854 horgan.arden 77.234.44.141 2019-10-02 03:57

Would you be interested in advertising that charges less than $40 per month and delivers thousands of people who are ready to buy directly to your website? Please send me a reply here: mia4675whi@gmail.com and I'll send more details.

no.110408 kmjdjBavaantack 5.188.210.73 2019-08-28 01:47

kah [url=https://onlinecasinogames777.us/#]online casinos[/url] tnq [url=https://onlinecasinogames777.us/#]big fish casino[/url] ubg [url=https://onlinecasinogames777.us/#]free casino games[/url]

no.110407 gqjipBavaantack 5.188.210.74 2019-08-28 01:39

ebm [url=https://casinorealmoney.us/#]free casino games[/url] ffv [url=https://casinorealmoney.us/#]online casinos[/url] jdr [url=https://casinorealmoney.us/#]casino game[/url]

no.110406 zjbpdBavaantack 5.188.210.78 2019-08-28 01:38

nuo [url=https://turbohempcbd.com/#]cbd oil prices[/url] lif [url=https://turbohempcbd.com/#]cbd hemp oil walmart[/url]

no.110405 lsnhcBavaantack 5.188.210.72 2019-08-28 01:18

bmh [url=https://online-casino24.us/#]free casino games online[/url] kwa [url=https://online-casino24.us/#]online casino real money[/url] wij [url=https://online-casino24.us/#]real money casino[/url]

no.110404 apiubBavaantack 5.188.210.76 2019-08-28 01:04

day [url=https://hemp-oil2019.com/#]cbd oil at walmart[/url]

no.110403 zqrusBavaantack 5.188.210.73 2019-08-28 00:54

jgc [url=https://onlinecasinogames777.us/#]no deposit casino[/url] uqg [url=https://onlinecasinogames777.us/#]casino games[/url]

no.110402 zgielBavaantack 5.188.210.77 2019-08-28 00:35

tbf [url=https://hemp-oil2020.com/#]cbd hemp oil[/url]

no.110401 vsiljBavaantack 5.188.210.72 2019-08-28 00:33

ass [url=https://online-casino24.us/#]free casino games[/url]

no.110400 urpazBavaantack 5.188.210.77 2019-08-28 00:06

hfm [url=https://hemp-oil2020.com/#]cbd oil benefits[/url]

no.110399 zkcuoBavaantack 5.188.210.78 2019-08-28 00:05

bqs [url=https://turbohempcbd.com/#]cbd oil uk[/url] grc [url=https://turbohempcbd.com/#]nutiva hemp oil[/url]

no.110398 decpxBavaantack 5.188.210.76 2019-08-27 23:57

xcz [url=https://hemp-oil2019.com/#]cbd[/url] tjp [url=https://hemp-oil2019.com/#]hemp oil for dogs[/url]

no.110397 zpemtBavaantack 5.188.210.72 2019-08-27 23:36

ken [url=https://online-casino24.us/#]casino slots[/url]

no.110396 qxzdgBavaantack 5.188.210.76 2019-08-27 23:32

git [url=https://hemp-oil2019.com/#]plus cbd oil[/url]

no.110395 djbqkBavaantack 5.188.210.74 2019-08-27 23:27

jnc [url=https://casinorealmoney.us/#]casino bonus codes[/url]

no.110394 bvglgBavaantack 5.188.210.76 2019-08-27 23:26

uyr [url=https://hemp-oil2019.com/#]buy cbd oil[/url] azj [url=https://hemp-oil2019.com/#]green roads cbd oil[/url]

no.110393 oxsbcBavaantack 5.188.210.72 2019-08-27 22:47

ofe [url=https://online-casino24.us/#]casino online[/url] ydw [url=https://online-casino24.us/#]online casino real money[/url] lzu [url=https://online-casino24.us/#]online casinos[/url]

no.110392 ykoqiBavaantack 5.188.210.78 2019-08-27 22:47

vdy [url=https://turbohempcbd.com/#]optivida hemp oil[/url]

no.110391 olnsoBavaantack 5.188.210.75 2019-08-27 22:45

tzd [url=https://newhempoil2020.com/#]cbd oil price[/url] xjk [url=https://newhempoil2020.com/#]cbd oil canada[/url]

no.110390 fzcbrBavaantack 5.188.210.77 2019-08-27 22:04

ble [url=https://hemp-oil2020.com/#]best cbd oil[/url] oww [url=https://hemp-oil2020.com/#]cbd vs hemp oil[/url]

no.110389 qpfrnBavaantack 5.188.210.75 2019-08-27 21:55

ktw [url=https://newhempoil2020.com/#]cbd oil for pain[/url]

no.110388 jvujxBavaantack 5.188.210.74 2019-08-27 21:45

pjr [url=https://casinorealmoney.us/#]no deposit casino[/url]

no.110386 pubaaBavaantack 5.188.210.73 2019-08-27 21:05

mfl [url=https://onlinecasinogames777.us/#]free casino games[/url]

no.110385 bauyaBavaantack 5.188.210.78 2019-08-27 21:01

wpi [url=https://turbohempcbd.com/#]what is hemp oil[/url]

no.110384 ginmdBavaantack 5.188.210.73 2019-08-27 21:00

gcv [url=https://onlinecasinogames777.us/#]online casinos[/url] pfw [url=https://onlinecasinogames777.us/#]free casino[/url] rxx [url=https://onlinecasinogames777.us/#]casino online slots[/url]

no.110383 yjaizBavaantack 5.188.210.78 2019-08-27 20:37

tyk [url=https://turbohempcbd.com/#]cbd[/url] jzk [url=https://turbohempcbd.com/#]hemp oil arthritis[/url]

no.110382 eqbtoBavaantack 5.188.210.77 2019-08-27 20:26

iio [url=https://hemp-oil2020.com/#]cbd oil prices[/url] mpc [url=https://hemp-oil2020.com/#]plus cbd oil[/url]

no.110381 gltzsBavaantack 5.188.210.71 2019-08-27 20:24

oim [url=https://onlinecasinogameslist24.us/#]casino games[/url] tdn [url=https://onlinecasinogameslist24.us/#]free casino[/url] egm [url=https://onlinecasinogameslist24.us/#]casino online slots[/url]

no.110380 piftwBavaantack 5.188.210.73 2019-08-27 20:11

hsv [url=https://onlinecasinogames777.us/#]play online casino[/url] vxi [url=https://onlinecasinogames777.us/#]casino play[/url]

no.110378 awialBavaantack 5.188.210.75 2019-08-27 19:55

jkr [url=https://newhempoil2020.com/#]cbd oil canada[/url]

no.110377 thtjzBavaantack 5.188.210.75 2019-08-27 19:55

okk [url=https://newhempoil2020.com/#]cbd hemp[/url] haj [url=https://newhempoil2020.com/#]what is hemp oil[/url]

no.110376 pbtffBavaantack 5.188.210.72 2019-08-27 19:47

wdo [url=https://online-casino24.us/#]casino bonus codes[/url] dfg [url=https://online-casino24.us/#]casino real money[/url] sdn [url=https://online-casino24.us/#]real money casino[/url]

no.110375 twlbtBavaantack 5.188.210.80 2019-08-27 19:42

lou [url=https://cbdoil30.com/#]buy cbd[/url]

no.110374 bqwgbBavaantack 5.188.210.74 2019-08-27 19:41

jfj [url=https://casinorealmoney.us/#]casino games[/url] iqv [url=https://casinorealmoney.us/#]casino online slots[/url] jot [url=https://casinorealmoney.us/#]free casino games online[/url]

no.110373 skomoBavaantack 5.188.210.80 2019-08-27 19:27

tpr [url=https://cbdoil30.com/#]best cbd oil[/url] wad [url=https://cbdoil30.com/#]pure cbd oil[/url]

no.110372 vhdufBavaantack 5.188.210.80 2019-08-27 19:27

wlv [url=https://cbdoil30.com/#]cbd oil for sale[/url]

no.110371 cyrorBavaantack 5.188.210.80 2019-08-27 19:17

ywh [url=https://cbdoil30.com/#]cbd oil stores near me[/url] gzp [url=https://cbdoil30.com/#]hemp oil side effects[/url]

no.110370 gpxrzBavaantack 5.188.210.77 2019-08-27 19:13

sun [url=https://hemp-oil2020.com/#]cbd oils[/url]

no.110369 rkwssBavaantack 5.188.210.76 2019-08-27 19:07

unx [url=https://hemp-oil2019.com/#]what is hemp oil[/url]

no.110368 tpnweBavaantack 5.188.210.72 2019-08-27 19:06

rqb [url=https://online-casino24.us/#]casino online[/url]

no.110367 cpdcaBavaantack 5.188.210.78 2019-08-27 19:02

gbo [url=https://turbohempcbd.com/#]cbd oils[/url] bxw [url=https://turbohempcbd.com/#]cbd oil canada online[/url]

no.110366 kijnbBavaantack 5.188.210.74 2019-08-27 18:30

dlx [url=https://casinorealmoney.us/#]online casino games[/url] hje [url=https://casinorealmoney.us/#]casino online[/url]

no.110365 bxjuzBavaantack 5.188.210.72 2019-08-27 18:20

dwu [url=https://online-casino24.us/#]casino games[/url]

no.110363 ktdqbBavaantack 5.188.210.76 2019-08-27 17:58

pza [url=https://hemp-oil2019.com/#]hemp oil extract[/url] rbg [url=https://hemp-oil2019.com/#]cbd hemp oil[/url]

no.110362 wogqjBavaantack 5.188.210.78 2019-08-27 17:47

qfc [url=https://turbohempcbd.com/#]zilis cbd oil[/url]

no.110360 wihnjBavaantack 5.188.210.76 2019-08-27 17:33

sns [url=https://hemp-oil2019.com/#]cbd oil price[/url] iad [url=https://hemp-oil2019.com/#]cbd oil for sale walmart[/url]

no.110359 bngnwBavaantack 5.188.210.71 2019-08-27 17:32

qlw [url=https://onlinecasinogameslist24.us/#]casino online slots[/url]

no.110358 qgzbnBavaantack 5.188.210.74 2019-08-27 17:27

irj [url=https://casinorealmoney.us/#]online casino games[/url]

no.110357 alyfpBavaantack 5.188.210.72 2019-08-27 17:24

kqt [url=https://online-casino24.us/#]online casino[/url] uno [url=https://online-casino24.us/#]play online casino[/url] nya [url=https://online-casino24.us/#]play casino[/url]

发表评论:

邮箱: