SamatsWiki

Various snippets for compressing Web assets.

HTML

htmlcompressor can minify HTML. To minify all HTML in an output directory (overwriting existing files):

   1 java -jar htmlcompressor-1.5.3.jar . --recursive -o ./

CSS

   1 cd assets/css/
   2 yui-compressor --type css *.css -o '.css$:.css'

Compression

SamatsWiki: CheatSheet/WebAssetsOptimization (last edited 2018-07-31 00:13:51 by SamatJain)