好用的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.117222 brier.jeana94 162.253.129.170 2020-05-24 17:59

Interested in the latest fitness , wellness, nutrition trends? Check out my blog here: https://bit.ly/www-fitnessismystatussymbol-com And my Instagram page @ziptofitness

no.117219 mosher.christa 162.253.129.105 2020-05-24 16:23

What would you say to no cost advertising for your website? Check out: https://bit.ly/freeadsubmission

no.117209 lavada.abrams 103.28.70.136, 2020-05-24 06:51

Hey Thank you for the fast delivery to my place. When I saw the order. I immediately saw that something was wrong with it, and when I opened it, the product was unfortunately damaged. I made a photo so that you can see what I mean. https://imgurgallery.com/yh56wsf I am a regular customer, and I regularly order from your shop. Hope we can solve this small problem in a good way. Greetings Lavada Abrams "Sent from my Samsung phone"

no.117186 ezequiel.moten25 184.75.211.140 2020-05-23 04:04

Looking to Increase Sales? Want an easy turnkey way to do it? Watch this 60 sec video and contact me !!!!!! https://bit.ly/atxtcoupon-howitworks

no.117179 arron.cody 76.71.86.197 2020-05-22 07:19

Need a unique, personalized gift for the man in your life and his mancave? How about a photograph about something of interest to him. Visit https://bit.ly/photogeographics and start your search at humor and unusual/humor and continue to 22 other categories. Prices start at $25 and use discount code MC20 for a 20% discount at checkout.

no.117169 cosby.ute 162.253.131.148 2020-05-21 09:16

Stem cell therapy has proven itself to be one of the most effective treatments for COPD (Chronic Obstructive Pulmonary Disorder). IMC is the leader in stem cell therapies in Mexico. For more information on how we can treat COPD please visit: https://bit.ly/copd-integramedicalcenter

no.117063 candra.poate35 89.187.178.143 2020-05-14 14:52

Log into: https://bit.ly/exercisefitnessandhealth Free to all who need it - and everyone does need it. My Blog explains all you need to know about exercise - what it involves, how it is measured, how much you should take, the effect on health and lifespan and the great improvement in quality of life which regular physical activity brings Sign up and I will send you a weekly update

no.117036 fryett.carmon76 104.245.144.237 2020-05-13 10:20

Are You Still Looking For A Fulfilled Life? Then You have Come To The Right Place! Go here Now ==>>https://bit.ly/Powerof-Numerology

no.116790 shana.skalski 104.245.145.10 2020-04-23 12:31

Greetings, I was just taking a look at your website and submitted this message via your feedback form. The contact page on your site sends you messages like this via email which is the reason you're reading through my message at this moment correct? This is the holy grail with any type of online ad, making people actually READ your ad and I did that just now with you! If you have something you would like to blast out to lots of websites via their contact forms in the U.S. or anywhere in the worl

no.116505 stroup.arnette57 104.254.92.218 2020-04-09 04:05

Good evening, I was just checking out your website and submitted this message via your contact form. The "contact us" page on your site sends you these messages to your email account which is the reason you are reading through my message at this moment correct? This is the most important accomplishment with any kind of online ad, getting people to actually READ your advertisement and that's exactly what I just accomplished with you! If you have something you would like to blast out to thousands

no.115750 cantrell.dustin 95.142.118.28 2020-03-03 04:57

Are you trying to find powerful advertising that delivers real results? I apologize for sending you this message on your contact form but actually that's exactly where I wanted to make my point. We can send your ad text to sites through their contact forms just like you're reading this message right now. You can specify targets by keyword or just start mass blasts to sites in any country you choose. So let's assume you're looking to push through a message to all the plumbing companies in the US,

no.115558 sales1 85.203.22.218 2020-02-24 05:33

Dear Sirs We would like to inform you that we added scarce 1955 Mercedes-Benz 190SL Convertible, 1961 Mercedes-Benz 220 Convertible and 1967 Cobra DAX to our stock. All these cars are in showroom condition. You can check more details and images for these cars at https://wexxluxurycars.com/16-classic-cars. We can offer you high sales commissions (up to $20000 per car). You will need to find buyers for our luxury & classic European vehicles. We sell luxury & vintage Rolls-Royce, Ferrari, McLaren,

no.114537 ransom.salvatore39 175.100.86.17 2020-01-26 16:02

Hi I have a question? Do you want to increase conversions, traffic to your website, or both? For more information go to: https://screenshot.photos/digitalmarketingagency greetings Phiskal

no.114182 marissa.macneil87 184.75.211.155 2020-01-12 08:57

Looking for effective advertising that delivers real results? I apologize for sending you this message on your contact form but actually that was the whole point. We can send your advertising text to websites via their contact forms just like you're getting this ad right now. You can target by keyword or just execute bulk blasts to websites in the location of your choice. So let's say you're looking to blast an ad to all the interior decorators in the USA, we'll scrape websites for only those an

no.112257 leigh.afford 93.87.75.118 2019-12-20 09:47

Your website is nominated, for best fashion photo of the year 2020 in catogory fashion. Our international jury has registered your website on the competition list, for more info go to https://screenshot.photos/nominated Thank you

no.112250 hoare.daryl 184.75.211.141 2019-12-19 02:06

Need to find powerful online promotion that isn't full of crap? Sorry to bug you on your contact form but actually that was kinda the point. We can send your advertising copy to sites through their contact forms just like you're receiving this message right now. You can specify targets by keyword or just start mass blasts to sites in the location of your choice. So let's assume you want to send a message to all the web developers in the United States, we'll scrape websites for only those and pos

no.112207 v3170viat 37.195.209.169 2019-12-10 08:15

order generic cialis india popular pills online comprar cialis spain [url=https://topedstoreusa.com/#]buy cialis online from uk[/url] buy cialis generic canada buy viagra und cialis <a href="https://topedstoreusa.com/#&quot;&gt;cheap levitra line&lt;/a&gt; legal buy viagra online how to get cheap cialis

no.111747 elmer.armstrong44 104.254.92.242 2019-12-06 12:10

Would you be interested in advertising that charges less than $49 monthly and delivers hundreds of people who are ready to buy directly to your website? Please send me a reply here: walter3519rob@gmail.com to get more info.

no.111715 violette.ernst 184.75.211.156 2019-12-02 02:20

Are you looking for effective online promotion that isn't full of BS? Sorry to bug you on your contact form but actually that was the whole point. We can send your ad copy to websites through their contact forms just like you're receiving this message right now. You can target by keyword or just start bulk blasts to sites in the country of your choice. So let's assume you're looking to push through an ad to all the web developers in the USA, we'll grab websites for just those and post your promo

no.111681 clifford.velva13 184.75.211.155 2019-11-25 13:54

Would you be interested in advertising that charges less than $50 every month and sends thousands of people who are ready to buy directly to your website? Reply to: alfred4756will@gmail.com to get more info.

no.111442 gertrude.dion 104.254.92.218 2019-11-09 02:56

Looking for powerful online promotion that isn't completely full of it? I apologize for sending you this message on your contact form but actually that was the whole point. We can send your promotional message to websites via their contact pages just like you're reading this note right now. You can target by keyword or just start mass blasts to sites in any country you choose. So let's assume you're looking to send a message to all the mortgage brokers in the US, we'll grab websites for only tho

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]

发表评论:

邮箱: