On 18 août, 07:39, Alex Epshteyn <[email protected]> wrote:
> Surprisingly was unable to find any prior discussions about this...
>
> I'm optimizing my app's load time by merging all my stylesheets into a
> single CSS file (then minifying it with YUI compressor), to reduce the
> number of HTTP requests. I'd like to also concatenate all the
> stylesheets from third party libraries I'm using into this single CSS
> file, but don't see a way to "undefine" the <stylesheet> module XML
> elements in these third party modules.
>
> For example, I'm using Fred Sauer's gwt-dnd library, whose module XML
> contains
>
> <stylesheet src="gwt-dnd.css"/>
>
> This line instructs the browser to request gwt-dnd.css when this
> module is loaded, but I don't want this to happen.
>
> Any ideas?
Don't do it by hand, write a "linker" to be run before the primary
linker (@LinkerOrder(Order.PRE)) that'll process all artifacts.find
(StylesheetReference.class) and replace them with a single
StylesheetReference while emitting the new single CSS file.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---