Package Details: htmlcompressor 1.5.3-3

Git Clone URL: (read-only)
Package Base: htmlcompressor
Description: HTML compressor and minifier.
Upstream URL:
Licenses: Apache
Submitter: pshevtsov
Maintainer: metalgamer
Last Packager: metalgamer
Votes: 9
Popularity: 0.008972
First Submitted: 2011-05-08 07:18
Last Updated: 2016-12-04 13:41

Latest Comments

ecognito commented on 2018-01-01 06:48

FYI, it looks like you specifically need version 1180 of the closure compiler to use with htmlcompressor.

I downloaded the htmlcompressor source[1] which included a copy of that version of the compiler.jar file. I replaced the /usr/share/java/htmlcompressor/compiler.jar link with that file and then it worked.

eimis commented on 2016-12-24 23:25

please add
to PKGBUILD because makepkg invokes bsdtar which fails to extract the jar and package is not getting built.

Thank you - this is a great tool.

metalgamer commented on 2015-09-03 20:56

@Manouchehri seems to be an upstream issue

Manouchehri commented on 2015-09-02 19:52

Not entirely sure what's wrong, but htmlcompressor can't use closure. I might just be going blind, but the soft links look correct to me.

~ > readlink -f /usr/share/java/htmlcompressor/*

~ > for x in $(readlink -f /usr/share/java/htmlcompressor/*); do file "$x"; done
/usr/share/java/closure-compiler/closure-compiler.jar: Java archive data (JAR)
/usr/share/java/htmlcompressor/htmlcompressor.jar: Zip archive data, at least v1.0 to extract
/usr/share/java/yuicompressor-2.4.8.jar: Java archive data (JAR)

~ > htmlcompressor --compress-js --js-compressor yui /dev/null
~ > htmlcompressor --compress-js --js-compressor closure /dev/null
ERROR: For JavaScript compression using Google Closure Compiler
additional jar file called compiler.jar must be present
in the same directory as HtmlCompressor jar

solstice commented on 2012-04-24 09:16

yuicompressor is an optdepend. closure-compiler as well