New option that allows for a system command to be ran for compression.

Comments

mikeytown2’s picture

Also support for http so things like http://closure-compiler.appspot.com/ can be used.

bropp’s picture

Would love to be able to use closure compiler or any other recent js minifier (uglifyjs).
JSMin isn't supported anymore and I just discovered that a lot of my JS isn't being compressed because the included JSMin library (last updated in 2011) isn't compatible with ES5 code.

mikeytown2’s picture

@bropp
https://github.com/sqmk/pecl-jsmin was updated last month. This is what I recommend if your version of PHP is 5.3.10 or higher.

bropp’s picture

Ok thanks, using the PECL extension worked much better.

mikeytown2’s picture

For windows there is AjaxMinifier.exe http://ajaxmin.codeplex.com/ so I need to make this work in windows and linux

  • mikeytown2 committed 00e2d31 on 7.x-2.x
    Issue #2424875 by mikeytown2: Add in the ability to use a command line...
mikeytown2’s picture

StatusFileSize
new15.16 KB

Part 1 done. js compression via command line works.

  • mikeytown2 committed 4b0c8e9 on 7.x-2.x
    Issue #2424875 by mikeytown2: Add in the ability to use a command line...
mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new4.75 KB

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.