JSF2 Static Resource Management — Combined, Compressed

后端 未结 4 1455
一向
一向 2021-02-07 08:43

Is anyone aware of a method to dynamically combine/minify all the h:outputStylesheet resources and then combine/minify all h:outputScript resources in the render phase? The comi

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 09:07

    Omnifaces provided CombinedResourceHandler is an excellent utility, but I also love to share about this excellent maven plugin:- resources-optimizer-maven-plugin that can be used to minify/compress js/css files &/or aggregate them into fewer resources during the build time & not dynamically during runtime which makes it a more performant solution, I believe.

    Also have a look at this excellent library as well:- webutilities

提交回复
热议问题