How to switch css-Obfuscation ON?

110 views
Skip to first unread message

tanteanni

unread,
Aug 27, 2012, 3:40:25 AM8/27/12
to google-we...@googlegroups.com
i know how to switch css obuscation off:

<set-configuration-property name="CssResource.style" value="pretty"/>

this is don in my default gwt.xml. But how to turn it on again - in my ci.gwt.xml/ release.gwt.xml? i asked this already at stackoverflow but it seems to be a very hard question?!

So what values could be asigned to "CssResource.style" and what value is the default value - the value that activates the obfuscation?



Thomas Broyer

unread,
Aug 27, 2012, 4:07:02 AM8/27/12
to google-we...@googlegroups.com
Answered on SO:

That configuration property is defined in com/google/gwt/ressources/Ressources.gwt.xml that way:

<define-configuration-property name="CssResource.style" is-multi-valued="false" />
<set-configuration-property name="CssResource.style" value="obf" />
I.e. the default value is obf. I believe obfuscate or obfuscated would work too (if you find them more readable). 

tanteanni

unread,
Aug 27, 2012, 5:09:25 AM8/27/12
to google-we...@googlegroups.com
thx  i'll try

i read the mentiond doc already but the comment above the code was somehow misleading: "<!-- This can be used to make CssResource produce human-readable CSS -->"

Thomas Broyer

unread,
Aug 27, 2012, 5:53:04 AM8/27/12
to google-we...@googlegroups.com


On Monday, August 27, 2012 11:09:25 AM UTC+2, tanteanni wrote:
thx  i'll try

i read the mentiond doc already but the comment above the code was somehow misleading: "<!-- This can be used to make CssResource produce human-readable CSS -->"

It should be understood as "defaults to obfuscating the stylesheet, but can be used to produce human-readable CSS (by setting the value to 'pretty')".
Reply all
Reply to author
Forward
0 new messages