Wednesday, December 29, 2010

Re: gzippen all gwt output files?

It's a new feature in 2.1.0, as such not present in 2.0 yet... 
Please upgrade to 2.1.0

On Wed, Dec 29, 2010 at 11:34 AM, balachandra maddina <chandu2708@gmail.com> wrote:
Im using GWT 2.0.3. and when add the <inherits name="com.google.gwt.precompress.Precompress"/> im getting 

[ERROR] Unable to find 'com/google/gwt/precompress/Precompress.gwt.xml' on your classpath;

Regards,
bala.


On Wed, Dec 22, 2010 at 10:07 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
3) add <inherits name="com.google.gwt.precompress.Precompress"/> to your gwt.xml and the GWT compilation will automatically GZip all emitted *.html, *.js and *.css (by default) as additional (by default) *.gz files; so you only have to have MultiViews enabled in Apache (or a similar setup that serves the *.gz file if it exists and the client accepts gzip encoded responses). Note that the DefaultServlet in Jetty (6 and 7) already does this, and it's turned on by default: http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html & http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/servlet/DefaultServlet.html
It's similar to your option 2) but without the "extra work after gwt compilation" (and possibly without the extra configuration, depending on your server).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment