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

python - Setting ctypes.Structure default values -

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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -