You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/03/18 16:11:44 UTC

[jira] [Created] (TAP5-2304) It should be easy to change the Closure Compiler's settings

Jochen Kemnade created TAP5-2304:
------------------------------------

             Summary: It should be easy to change the Closure Compiler's settings
                 Key: TAP5-2304
                 URL: https://issues.apache.org/jira/browse/TAP5-2304
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-webresources
    Affects Versions: 5.4
            Reporter: Jochen Kemnade
            Priority: Minor


The org.apache.tapestry5.internal.webresources.GoogleClosureMinimizer uses very conservative settings for JavaScript minimization, all the compiler options are disabled by default.
To be able to change that behavior (e.g. to apply at least simple optimizations (see https://developers.google.com/closure/compiler/docs/compilation_levels)), you have to create a new implementation of org.apache.tapestry5.internal.webresources.AbstractMinimizer and override Tapestry's default implementation.
It should be a matter of changing a symbol value or using a different GoogleClosureMinimizer constructor (maybe one that takes an additional  CompilerOptions).



--
This message was sent by Atlassian JIRA
(v6.2#6252)