I have inherited an old xsl transformation that generates plain HTML, which is then bound to a widget using a GWT HTML field. The current setup looks like this:
HTML html = new HTML
html.setHTML(result)
In the UiBinder section of the widget, there are some old legacy styles defined:
<ui:style>
<!-- old legacy styles -->
</ui:style>
The issue I'm facing is that while these styles are getting obfuscated, the plain HTML content set in the HTML container remains unstyled.
I attempted to use
@external .*;
but it's not allowed in that context. Trying to prefix all styles with @external prefix-* also results in errors:
[ERROR] Line 6: The annotation @CssResource.ClassName is disallowed for this location
[ERROR] Line 7: Syntax error on token "*", delete this token
Is there a way to disable obfuscation for this specific UiBinder file or force GWT to obfuscate the incoming HTML content as well?