Exclude debug JavaScript code during minification

后端 未结 11 2002
庸人自扰
庸人自扰 2020-11-28 07:16

I\'m looking into different ways to minify my JavaScript code including the regular JSMin, Packer, and YUI solutions. I\'m really interested in the new Google Closure Compil

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 07:27

    If you're using UglifyJS2, you can use the drop_console argument to remove console.* functions.

提交回复
热议问题