Is there a good JavaScript minifier? [closed]

2019-01-02 15:23发布

What JavaScript minifier do you recommend?

9条回答
明月照影归
2楼-- · 2019-01-02 15:27

UglifyJS2, used by the jQuery project.

查看更多
弹指情弦暗扣
3楼-- · 2019-01-02 15:32

jscompressor.com is pretty good.

查看更多
有味是清欢
4楼-- · 2019-01-02 15:35

There are several you can use/try:

查看更多
后来的你喜欢了谁
5楼-- · 2019-01-02 15:39

Active

Deprecated


Google Closure Compiler generally achieves smaller files than YUI Compressor, particularly if you use the advanced mode, which looks worryingly meddlesome to me but has worked well on the one project I've used it on:

Several big projects use UglifyJS, and I've been very impressed with it since switching.

查看更多
不流泪的眼
6楼-- · 2019-01-02 15:42
还给你的自由
7楼-- · 2019-01-02 15:43
登录 后发表回答