We're finding that YUICompressor doesn't work inside Tomcat. Could this be the issue?
On Tue, Nov 1, 2011 at 5:48 AM, pico.dev . <pico....@gmail.com> wrote: > Hi! > > I've updated my app to Tapestry 5.3-rc-2 and I'm testing the > minification and production mode. I've included in my project the > tapestry-yuicompressor dependency and I've made contributions to the > ApplicationDefaults like this in my app module: > > public static void > contributeApplicationDefaults(MappedConfiguration<String, String> > configuration) { > configuration.add(SymbolConstants.PRODUCTION_MODE, "true"); > configuration.add(SymbolConstants.COMPRESS_WHITESPACE, "true"); > configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true"); > configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true"); > configuration.add(SymbolConstants.COMPACT_JSON, "true"); > ... > } > > When I access to my application the text/css resources gets minimized > correctly but the text/javascript resources are returned like the > originals without any minimization. > > Also I noted that with PRODUCTION_MODE to "true" all text/css and > text/javascript assets are returned with HTTP status 200 code and the > transferred size of all resources of a request to my app is 290 KiB > according to Chrome Developer Tools. With PRODUCTION_MODE to "false" > the assets are returned with HTTP status 304 code and the transferred > size of all resources is 25 KiB. > > I'm missing something? Anyone with the same behavour? > > Cheers, > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org