jsf 2.2 - Remove comments from CSS and JavaScript files in JSF page -


is there configuration in jsf can configure jsf engine skip comments in css , javascript files similar xhtml files?

no. jsf doesn't offer facility. jsf nothing dynamic js files. dynamic thing jsf css files evaluating el expressions, particularly in order support resource mapping #{resource} in css files. see a.o. how reference jsf image resource css background image url.

your best bet using css , js minifier. not removes comments, can compress it. known example yui compressor. there maven plugins automatically run during build, such minify.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -