How to minify my addons js?


Well-known member
Indeed. @digitalpoint's service is very useful for one time or manual minification.

It uses this Google API:

I have built this into my dev tools (which includes a new version of add on builder) so that JS is minified automatically.
Yeah... being able to do that (simply) was one of the reasons I finally switched to PhpStorm instead of Zend Studio. You can do it with ZS too, but it's so much more complicated and annoying. :)

Chris D

XenForo developer
Staff member
I use PHP Storm too but ironically my dev tools are a XF add on so my tools use their REST API to minify on the fly as the add on is exported and it's files are packaged up.

My add ons (starting with XMG 2.1) are all going to contain the full and minified versions. The full runs with debug mode on. The min versions run in normal operation. That's all controlled by a custom template helper and also generates a separate cache buster to the default XF one based on the add on version ID and the XF JS version debug option value.