Various snippets for compressing Web assets. == HTML == [[https://code.google.com/p/htmlcompressor/|htmlcompressor]] can minify HTML. To minify all HTML in an output directory (overwriting existing files): {{{#!highlight sh java -jar htmlcompressor-1.5.3.jar . --recursive -o ./ }}} == CSS == {{{#!highlight sh cd assets/css/ yui-compressor --type css *.css -o '.css$:.css' }}} == Compression == * [[https://tools.paulcalvano.com/compression.php|Gzip and Brotli Compression Level Estimator]]: compares Gzip vs Brotli compression for a Website