好用的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.52995 auuitBavaantack 5.188.210.69 2019-02-18 10:51

cbd oil benefits for women <a href="https://cbdoil2019.com/#">charlottes web</a>

no.52994 japjgBavaantack 5.188.210.70 2019-02-18 10:50

cannabis oil for arthritis <a href="https://cbdoilwalmart.com/#">the best cbd oil on the market</a>

no.52993 zbmwwBavaantack 5.188.210.66 2019-02-18 10:39

cbdoil <a href="https://cbd-oil.us.org/#">cbd vape</a>

no.52991 brspsBavaantack 5.188.210.62 2019-02-18 09:57

vape oil <a href="https://icbdoilonline.com/#">cbd near me</a>

no.52990 mjjkiBavaantack 5.188.210.64 2019-02-18 09:48

hemp oil vs cbd oil <a href="https://cbdoilstorelist.com/#">full spectrum</a>

no.52989 aufngBavaantack 5.188.210.66 2019-02-18 09:40

charlotte webb <a href="https://cbd-oil.us.org/#">cbd daily</a>

no.52988 bttayBavaantack 5.188.210.68 2019-02-18 09:39

cannabis oil <a href="https://cbdoilparcel.com/#">hemp oil vs cbd</a>

no.52987 bkpwkBavaantack 5.188.210.69 2019-02-18 09:30

hemp oil cbd <a href="https://cbdoil2019.com/#">cannabidiol life</a>

no.52986 czdscBavaantack 5.188.210.62 2019-02-18 09:20

cbd tinctures <a href="https://icbdoilonline.com/#">charlottes web cbd oil</a>

no.52985 dqrmiBavaantack 5.188.210.67 2019-02-18 09:19

cbd oil at gnc <a href="https://listcbdoil.com/#">thc and cbd</a>

no.52984 iibeaBavaantack 5.188.210.60 2019-02-18 09:17

vaping cbd oil <a href="https://icbdoilstore.com/#">cannabis oils</a>

no.52983 gtrusBavaantack 5.188.210.70 2019-02-18 09:14

cvd oil <a href="https://cbdoilwalmart.com/#">hemp cbd</a>

no.52982 gunfgBavaantack 5.188.210.68 2019-02-18 09:09

best cbd oil for anxiety <a href="https://cbdoilparcel.com/#">cbd for anxiety</a>

no.52981 tony.coombes85 181.10.230.90 2019-02-18 09:07

Hello I have tried sending you a message via your website but I got an auto response saying it was not delivered for some bizarre reason, so here goes again! As mentioned in my previous message, I would like to contribute an article to your blog on UK and EU vape laws. I used to work for a vape shop in London some time ago and I have picked up quite some knowledge on the TPD laws. I have also talked about the vape laws in some other European countries (the ones I am knowledgeable about at

no.52980 iyomdBavaantack 5.188.210.60 2019-02-18 09:05

pure cbd oil for sale amazon <a href="https://icbdoilstore.com/#">cbd anxiety</a>

no.52978 yyxelBavaantack 5.188.210.68 2019-02-18 08:52

charlottes web cbd oil for sale <a href="https://cbdoilparcel.com/#">cbdoil</a>

no.52977 eybmjBavaantack 5.188.210.64 2019-02-18 08:48

populum cbd oil <a href="https://cbdoilstorelist.com/#">just cbd</a>

no.52975 rlnyoBavaantack 5.188.210.69 2019-02-18 08:31

where to buy cbd oil for dogs <a href="https://cbdoil2019.com/#">ultra cell cbd oil</a>

no.52974 wysjiBavaantack 5.188.210.66 2019-02-18 08:23

cbd gummies for pain <a href="https://cbd-oil.us.org/#">pure kana</a>

no.52973 zbmwdBavaantack 5.188.210.60 2019-02-18 08:19

what is cbd oil good for <a href="https://icbdoilstore.com/#">buy cbd oil online</a>

no.52971 iwiayBavaantack 5.188.210.67 2019-02-18 08:13

cbd for pain <a href="https://listcbdoil.com/#">buy cbd online</a>

no.52970 uzmdjBavaantack 5.188.210.70 2019-02-18 08:13

cbd oil stores near me <a href="https://cbdoilwalmart.com/#">uses for cbd oil</a>

no.52969 okogwBavaantack 5.188.210.67 2019-02-18 08:13

cbd cream for arthritis <a href="https://listcbdoil.com/#">cbd full spectrum</a>

no.52968 moolsBavaantack 5.188.210.69 2019-02-18 08:12

cbd oil for dogs reviews <a href="https://cbdoil2019.com/#">pure kana cbd</a>

no.52967 hnffaBavaantack 5.188.210.67 2019-02-18 08:09

cannabis oil with thc for sale <a href="https://listcbdoil.com/#">uses for cbd oil</a>

no.52966 jhkqeBavaantack 5.188.210.68 2019-02-18 08:07

buy cbd oil for dogs <a href="https://cbdoilparcel.com/#">top rated cbd oil</a>

no.52965 zbfcxBavaantack 5.188.210.64 2019-02-18 08:05

cbd tincture benefits <a href="https://cbdoilstorelist.com/#">cbd oil benefits for women</a>

no.52964 ittnlBavaantack 5.188.210.70 2019-02-18 07:41

how to make cannabis oil <a href="https://cbdoilwalmart.com/#">oil vape pen</a>

no.52963 vgcqyBavaantack 5.188.210.60 2019-02-18 07:34

where to buy cbd oil online <a href="https://icbdoilstore.com/#">cbd oil and anxiety</a>

no.52962 uebcdBavaantack 5.188.210.62 2019-02-18 07:31

hempworx cbd oil <a href="https://icbdoilonline.com/#">cbd oil wisconsin</a>

no.52961 qzxjfBavaantack 5.188.210.70 2019-02-18 07:24

hemp bombs cbd <a href="https://cbdoilwalmart.com/#">mvp100 full spectrum hemp oil</a>

no.52960 qpbcgBavaantack 5.188.210.66 2019-02-18 07:24

cannabis oil for nerve pain <a href="https://cbd-oil.us.org/#">best cannabis oil for pain</a>

no.52959 gmtviBavaantack 5.188.210.69 2019-02-18 07:12

cbd oil for dogs reviews <a href="https://cbdoil2019.com/#">medical marijuana</a>

no.52958 rgzzvBavaantack 5.188.210.64 2019-02-18 06:46

full spectrum hemp extract <a href="https://cbdoilstorelist.com/#">cbd oil charlottes web</a>

no.52957 wriqkBavaantack 5.188.210.66 2019-02-18 06:26

cannabis sativa oil <a href="https://cbd-oil.us.org/#">where to buy cbd oil near me</a>

no.52956 prjqqBavaantack 5.188.210.62 2019-02-18 06:14

cbd for cats <a href="https://icbdoilonline.com/#">cbl oil</a>

no.52955 atoloBavaantack 5.188.210.64 2019-02-18 05:45

hempworx joyce <a href="https://cbdoilstorelist.com/#">lazarus</a>

no.52954 ewachBavaantack 5.188.210.62 2019-02-18 05:44

hemp cbd <a href="https://icbdoilonline.com/#">cbd oil for cats</a>

no.52953 tqsosBavaantack 5.188.210.69 2019-02-18 05:44

cbd oil australia <a href="https://cbdoil2019.com/#">elixinol</a>

no.52952 smxzpBavaantack 5.188.210.70 2019-02-18 05:43

cbd flower <a href="https://cbdoilwalmart.com/#">cbd pen</a>

no.52951 uchjtBavaantack 5.188.210.68 2019-02-18 05:39

cbd gummies reviews <a href="https://cbdoilparcel.com/#">cbd oil and drug testing</a>

no.52950 rfvlwBavaantack 5.188.210.60 2019-02-18 05:32

brighten pure cbd <a href="https://icbdoilstore.com/#">leafwize.com</a>

no.52949 zqnsxBavaantack 5.188.210.60 2019-02-18 05:26

cbd oil edmonton <a href="https://icbdoilstore.com/#">cbd oil near me</a>

no.52948 dzvdwBavaantack 5.188.210.66 2019-02-18 05:10

cannabis oil for anxiety <a href="https://cbd-oil.us.org/#">procana cbd oil</a>

no.52947 kzgmsBavaantack 5.188.210.68 2019-02-18 05:09

cannabis cream <a href="https://cbdoilparcel.com/#">vape pen for cannabis oil</a>

no.52946 pvavzBavaantack 5.188.210.67 2019-02-18 05:06

healthworx <a href="https://listcbdoil.com/#">cbd isolate powder</a>

no.52945 tghgwBavaantack 5.188.210.68 2019-02-18 04:54

charlotte web <a href="https://cbdoilparcel.com/#">cbd capsules walmart</a>

no.52944 ipzycBavaantack 5.188.210.69 2019-02-18 04:49

cbd stocks <a href="https://cbdoil2019.com/#">hemp bombs cbd</a>

no.52943 woofzBavaantack 5.188.210.70 2019-02-18 04:47

cbd full spectrum <a href="https://cbdoilwalmart.com/#">cbd oil capsules</a>

no.52942 qfolzBavaantack 5.188.210.64 2019-02-18 04:46

cbd lotion <a href="https://cbdoilstorelist.com/#">marijuana oils for vaping for sale</a>

发表评论:

邮箱: