Perhaps you haven't fully enabled minification? There are 2 steps: 1)
setting the minification symbol to true (as you have done), and 2)
adding the tapestr-yuicompressor module to your classpath. As it says
at http://tapestry.apache.org/javascript.html,
"The tapestry-core module provides the empty infrastructure for
supporting minification; the actual logic is supplied in the
tapestry-yuicompressor module. You will need to update your
dependencies to include this module."
If you're using Maven, this would be something like:
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-yuicompressor</artifactId>
<version>${tapestry-release-version}</version>
</dependency>
Gradle would be similar, of course. If you aren't using something like
Maven or Gradle, you'll have to download the jar and its dependency
(com.yahoo.platform.yui: yuicompressor) yourself.
On Mon, Mar 18, 2013 at 5:28 AM, Bob.Sky <[email protected]> wrote:
> Hi, have any body meet the same problem like this?
> I want to use the js/css minifacation in Tapestry, so I cof this
> "configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true");" in the
> AppModule.
> But. the minifacation only effect on the *.tml files, but the js and css
> file are not compressed.
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/js-css-Minifacation-invalid-in-the-production-mode-T5-3-2-tp5720509.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]