Created
October 28, 2013 13:58
-
-
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <[a-z]+:[^>]+> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment