Reputation: 6067
I'm using GWT with obfuscated CSS styles (CssResource.style=OBF). For example I get results like <div class="GI1MGL5PID">
.
Is there any possbility to manage how the style names are generated? I do not want to disable the obfuscation but add some prefix or so to all classes to get something like <div class="MyApp_GI1MGL5PID">
.
Upvotes: 1
Views: 159
Reputation: 1578
You can use this Resources.gwt.xml
property to configure the prefix behavior.
<!-- This allows the developer to use shorter obfuscated class names. -->
<!-- Is is valid to extend this property to use a custom name. -->
<define-configuration-property name="CssResource.obfuscationPrefix" is-multi-valued="false" />
<set-configuration-property name="CssResource.obfuscationPrefix" value="default" />
Property value can be:
default
, uses a checksum from all types of your appempty
, this generates the most compact result but it might conflict with outer styles (example){string}
, this string is used as a prefix (example)Upvotes: 3