Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - htmlcompressor

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: htmlcompressor 1.5.3-3

Git Clone URL: https://aur-dev.archlinux.org/htmlcompressor.git (read-only)
Package Base: htmlcompressor
Description: HTML compressor and minifier.
Upstream URL: http://code.google.com/p/htmlcompressor/
Licenses: Apache
Submitter: pshevtsov
Maintainer: metalgamer
Last Packager: metalgamer
Votes: 7
Popularity: 0.480355
First Submitted: 2011-05-08 07:18
Last Updated: 2016-12-04 13:41

Latest Comments

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 https://github.com/marconilanna/htmlcompressor/issues/93

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