What do you use to minimize and compress JavaScrip

2019-01-05 10:03发布

What do you use to minimize and compress JavaScript libraries?

17条回答
相关推荐>>
2楼-- · 2019-01-05 10:13

I don't minimize JavaScript at all: gzip compression is good enough for me and has the additional benefit that error messages will still be useful.

查看更多
冷血范
3楼-- · 2019-01-05 10:15

https://jawr.dev.java.net/ is excellent for minification and versioning

查看更多
我想做一个坏孩纸
4楼-- · 2019-01-05 10:16

I have tried YUI compressor before, but it gives me error message.

I suggest using JSMIN to minify your javascript:

http://www.crockford.com/javascript/jsmin.html

查看更多
在下西门庆
5楼-- · 2019-01-05 10:16

I use perl's JavaScript::Minifier. It works pretty well and you can e.g. replace some phrases using perl.

查看更多
神经病院院长
6楼-- · 2019-01-05 10:19

Dean Edward's packer achieves some pretty good compression ratios. It has command line implementations which allows it to be used in a continuous integration process.

查看更多
闹够了就滚
7楼-- · 2019-01-05 10:21

I use YUI Compressor. Seems to get the job done well!

查看更多
登录 后发表回答