Which Javascript minifier (cruncher) does the same things that the one Google uses for its JS APIs?

后端 未结 6 1924
予麋鹿
予麋鹿 2020-12-12 18:18

I am a Google Maps API (javascript) developer. I have noticed that Google uses a Javascript minifier that has the following features:

  1. Shortens variables, prope
6条回答
  •  攒了一身酷
    2020-12-12 19:09

    I believe that YUICompressor does #1, except for the function names, and #2 using a special syntax that is removed during compression.

    #3 is just a build task, not a function of the compressor.

    YUICompressor

提交回复
热议问题