j2html icon indicating copy to clipboard operation
j2html copied to clipboard

Implented integration to Google Closure compiler for better js code minification

Open rilmay opened this issue 4 years ago • 1 comments

I noticed that the current js code minifier is simple whitespace/newline stripper. Google's compiler is a proven and configurable minification tool that can significantly reduce the amount of code, and I thought it would be a good idea to use it in a project. In PR, I have not set this minifier as a standard one, but it will be cool that users will be able to set it in the configuration.

rilmay avatar Nov 14 '21 21:11 rilmay

I think the core of j2html should be dependency free, so I would provide the option to configure your own minifier (through an interface), and provide this as a separate artifact instead.

tipsy avatar Nov 14 '21 22:11 tipsy