I am trying to understand how to achieve compression and minimization for all my js files. I currently have them in a plugin with hooks in the /html/js/mycustomjs/ .
I understand that liferay has its own javascripts compression engine, in barebone.jsp or everything.jsp, and found a list of files declared in the javascript.barebone.files and javascript.everything.files properties on portal.properties .
The question is, can I use this mechanism to compress my own js files? Should I override such properties in portal-ext.properties ? Or should I just use MinifierFilter myself?
In addition, is the hook plugin the right place to host the js files that I want to receive on all portal sites?
source share