Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created October 28, 2013 13:58
Show Gist options
  • Select an option

  • Save sergiolopes/7197256 to your computer and use it in GitHub Desktop.

Select an option

Save sergiolopes/7197256 to your computer and use it in GitHub Desktop.
Compressão de HTML, JSP e Tagfiles em build time usando htmlcompressor. O arquivo regex.txt exclui patterns (no caso, scriptlets e diretivas JSP).
java -jar war/WEB-INF/lib/htmlcompressor-*.jar \
--type html --recursive --mask '*.jsp;*.html;*.tag;*.htm' \
--compress-css --compress-js --js-compressor closure \
--remove-intertag-spaces --remove-quotes \
--preserve-server-script -p regex.txt \
-o war/ war/ 2> /dev/null
<[a-z]+:[^>]+>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment