On Thu, 13 Nov 2014 16:28:01 -0200, George Christman <gchrist...@cardaddy.com> wrote:

How do I minify tapestry's JS and CSS? Google is complaining saying that
62.3kib 50% could be saved with the core js alone. It also says something
about optimizing css delivery and points to all the tapestry's css.

Check the Minimizing Assets section at the bottom of http://tapestry.apache.org/assets.html. Basically, add the tapestry-web-resources dependency (Maven snippet below) and set the SymbolConstants.MINIFICATION_ENABLED symbol to true.

<dependency>
    <groupId>org.apache.tapestry</groupId>
    <artifactId>tapestry-web-resources</artifactId>
    <version>5.4</version>
</dependency>

@Contribute(SymbolProvider.class)
@ApplicationDefaults
public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration) {
    configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true");
}

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to